Skip to content

adjust nightly test sdcheduling #7

adjust nightly test sdcheduling

adjust nightly test sdcheduling #7

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