diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 256c155..ec32db7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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"' }} diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index a9e1e3e..09ba52e 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -7,6 +7,7 @@ on: inputs: build_type: description: 'Build type (e.g., "Debug", "Release", "RelWithDebInfo", "MinSizeRel")' + default: '"Debug"' required: true type: string