Merge pull request #953 from CHIP-SPV/fixAtomic #21
This file contains 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: Compile and Cache Main | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
cancel-nightly: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Nightly Tests | |
uses: styfle/cancel-workflow-action@0.11.0 | |
with: | |
workflow_id: nightly-tests.yml | |
all_but_latest: false | |
build: | |
needs: cancel-nightly | |
runs-on: [self-hosted, X64] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: 'recursive' | |
- name: Setup ccache | |
uses: hendrikmuhs/ccache-action@v1.2 | |
- name: Cache build artifacts | |
uses: actions/cache@v3 | |
with: | |
path: | | |
build | |
~/.cache/ccache | |
key: ${{ runner.os }}-build-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-build- | |
- name: Build | |
shell: bash | |
run: | | |
./scripts/unit_tests.sh release llvm-19 --build-only && cp -r build /space/chipStar/build |