Skip to content

Commit

Permalink
ci: enable full matrix for PRs from development
Browse files Browse the repository at this point in the history
  • Loading branch information
DNKpp committed Oct 7, 2024
1 parent 7da4b12 commit d17c920
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,13 @@ jobs:
echo "BUILD_MODES=\"Debug\"" >> $GITHUB_ENV
echo "CXX_VERSIONS=20" >> $GITHUB_ENV
# if main is the target branch, add release-mode and c++23
# if its a PR from development or the main branch in general, add release-mode and c++23
- name: Enable release-mode
if: ${{ github.ref == 'refs/heads/main' }}
if: ${{
github.ref == 'refs/heads/main'
|| github.ref == 'refs/heads/development' && github.event_name == 'pull_request'
}}

shell: bash
run: |
echo "BUILD_MODES=$(echo $BUILD_MODES, \"Release\")" >> $GITHUB_ENV
Expand Down

0 comments on commit d17c920

Please sign in to comment.