Skip to content

Commit

Permalink
allow building for both debug and release for PRs in master
Browse files Browse the repository at this point in the history
  • Loading branch information
Gogoshika-ga committed Oct 17, 2024
1 parent 6374251 commit 1ffdf1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,6 @@ on:

jobs:
build:
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
uses: ./.github/workflows/cmake.yml
with:
build_type: Debug

build_pr:
if: github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'master'
strategy:
matrix:
build_type: [Debug, Release]
uses: ./.github/workflows/cmake.yml
with:
build_type: ${{ matrix.build_type }}
build_type: ${{ (github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'master') && '"Debug","Release"' || '"Debug"' }}
1 change: 1 addition & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
inputs:
build_type:
description: 'Build type (e.g., "Debug", "Release", "RelWithDebInfo", "MinSizeRel")'
default: '"Debug"'
required: true
type: string

Expand Down

0 comments on commit 1ffdf1f

Please sign in to comment.