tests,misc: Add caching to daily and weekly test workflows
This commit is contained in:
36
.github/workflows/daily-tests.yaml
vendored
36
.github/workflows/daily-tests.yaml
vendored
@@ -18,6 +18,11 @@ jobs:
|
||||
timeout-minutes: 60
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Cache build/ALL
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: build/ALL
|
||||
key: testlib-build-all
|
||||
- name: ALL/unittests.${{ matrix.type }} UnitTests
|
||||
run: scons build/ALL/unittests.${{ matrix.type }} -j $(nproc)
|
||||
|
||||
@@ -26,7 +31,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
test-type: [arm_boot_tests, fs, gpu, insttest_se, learning_gem5, m5threads_test_atomic, memory, multi_isa, replacement_policies, riscv_boot_tests,
|
||||
test-type: [arm_boot_tests, fs, gpu, insttest_se, learning_gem5, m5threads_test_atomic, memory, replacement_policies, riscv_boot_tests,
|
||||
stdlib, x86_boot_tests]
|
||||
runs-on: [self-hosted, linux, x64]
|
||||
container: ghcr.io/gem5/ubuntu-24.04_all-dependencies:latest
|
||||
@@ -36,9 +41,15 @@ jobs:
|
||||
run: rm -rf ./* || true rm -rf ./.??* || true rm -rf ~/.cache || true
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Cache build/NULL
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: build/NULL
|
||||
key: testlib-build-null
|
||||
|
||||
- name: long ${{ matrix.test-type }} tests
|
||||
working-directory: ${{ github.workspace }}/tests
|
||||
run: ./main.py run gem5/${{ matrix.test-type }} --length=long -vv -t $(nproc)
|
||||
run: ./main.py run gem5/${{ matrix.test-type }} -j$(nproc) --length=long -vv -t $(nproc)
|
||||
- name: upload results
|
||||
if: success() || failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
@@ -65,10 +76,17 @@ jobs:
|
||||
- name: Clean runner
|
||||
run: rm -rf ./* || true rm -rf ./.??* || true rm -rf ~/.cache || true
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Cache build/ALL
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: build/ALL
|
||||
key: testlib-build-all
|
||||
|
||||
- name: long ${{ matrix.test-type }} gem5_library_example_tests
|
||||
working-directory: ${{ github.workspace }}/tests
|
||||
run: ./main.py run --uid SuiteUID:tests/gem5/gem5_library_example_tests/test_gem5_library_examples.py:test-${{ matrix.test-type }} --length=long
|
||||
-vv
|
||||
run: ./main.py run --uid SuiteUID:tests/gem5/gem5_library_example_tests/test_gem5_library_examples.py:test-${{ matrix.test-type }} -j $(nproc)
|
||||
--length=long -vv
|
||||
- name: upload results
|
||||
if: success() || failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
@@ -89,12 +107,16 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: develop
|
||||
- name: Build VEGA_X86/gem5.opt
|
||||
run: scons build/VEGA_X86/gem5.opt -j`nproc`
|
||||
|
||||
- name: Cache build/VEGA_X86
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: build/VEGA_X86
|
||||
key: testlib-build-vega
|
||||
|
||||
- name: Run Testlib GPU Tests
|
||||
working-directory: ${{ github.workspace }}/tests
|
||||
run: ./main.py run --length=long --skip-build -vvv -t $(nproc) --host gcn_gpu gem5/gpu
|
||||
run: ./main.py run --length=long -vvv -t $(nproc) -j $(nproc) --host gcn_gpu gem5/gpu
|
||||
|
||||
- name: Upload results
|
||||
if: success() || failure()
|
||||
|
||||
Reference in New Issue
Block a user