[ci] Prevent automated generated file regeneration on non-default branches. Split workflows. #29671
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| pull_request: | |
| branches: [thewarwithin, midnight] | |
| push: | |
| branches: [thewarwithin, midnight] | |
| paths-ignore: | |
| - "ActionPriorityLists/**" | |
| - "SpellDataDump/*.txt" | |
| - "dbc_extract3/**" | |
| - "casc_extract/**" | |
| env: | |
| SIMC_PROFILE: profiles/CI.simc | |
| CCACHE_GENERATION: 0 # bump if you need to "clean" ccache | |
| jobs: | |
| build: | |
| uses: ./.github/workflows/build.yml | |
| with: | |
| do-test: ${{ github.base_ref == github.event.repository.default_branchy || github.base_ref == 'midnight' }} | |
| spec-test: | |
| needs: [build] | |
| if: github.base_ref == github.event.repository.default_branch || github.base_ref == 'midnight' | |
| uses: ./.github/workflows/spec_test.yml | |
| with: | |
| cache-key: ubuntu-clang++-15-for_run-${{ github.sha }}-cpp-17 | |
| is-ptr: false | |
| spec-test-ptr: | |
| needs: [build] | |
| if: github.base_ref == github.event.repository.default_branch || github.base_ref == 'midnight' | |
| uses: ./.github/workflows/spec_test.yml | |
| with: | |
| cache-key: ubuntu-clang++-15-for_run-${{ github.sha }}-cpp-17 | |
| is-ptr: true | |
| ubuntu-run: | |
| needs: [build] | |
| if: github.base_ref == github.event.repository.default_branch || github.base_ref == 'midnight' | |
| uses: ./.github/workflows/ubuntu_run.yml | |
| update-generated-files: | |
| needs: [build] | |
| if: github.event_name == 'push' && ( success() || failure() ) && github.repository == 'simulationcraft/simc' && github.base_ref == github.event.repository.default_branch | |
| uses: ./.github/workflows/generate_files.yml |