[ele] fix pf again #152
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: [midnight] | |
| push: | |
| branches: [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 | |
| # Most CI jobs only run if you are either: | |
| # - committing PR against default_branch | |
| # - committing or merging into default_branch | |
| # If PR CI is desired for other branches, chain additional `|| github.base_ref == 'branch name'` | |
| jobs: | |
| build: | |
| uses: ./.github/workflows/build.yml | |
| with: | |
| do-test: ${{ github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch }} | |
| environment-configuration-info: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Report Environment Configuration Information | |
| run: | | |
| echo "${{github.event.repository.default_branch}} ${{github.ref}} ${{github.ref_name}} ${{github.base_ref}} ${{github.head_ref}} ${{github.sha}}" | |
| spec-test: | |
| needs: [build] | |
| if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch | |
| 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.ref_name == github.event.repository.default_branch | |
| uses: ./.github/workflows/spec_test.yml | |
| with: | |
| cache-key: ubuntu-clang++-15-for_run-${{ github.sha }}-cpp-17 | |
| is-ptr: true | |
| ubuntu-test: | |
| needs: [build] | |
| if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch | |
| uses: ./.github/workflows/ubuntu_test.yml | |
| # this job will do bad things if enabled for non-default branch without additional work | |
| update-generated-files: | |
| needs: [build, spec-test] # requires spec-test as this job downloads files generated from spec-test | |
| if: github.event_name == 'push' && ( success() || failure() ) && github.repository == 'simulationcraft/simc' && github.ref_name == github.event.repository.default_branch | |
| uses: ./.github/workflows/generate_files.yml |