misc,tests: Fix incorrect date assignment in Actions

This commit is contained in:
Bobby R. Bruce
2024-10-18 14:59:16 -07:00
parent 3e83f3ce4f
commit 644ad3cdb0
3 changed files with 14 additions and 10 deletions

View File

@@ -56,7 +56,7 @@ jobs:
uses: actions/cache/restore@v4
with:
path: build/ALL
key: testlib-build-all-${{ env.date }}
key: testlib-build-all-${{ needs.get-date.outputs.date }}
restore-keys: |
testlib-build-all
@@ -126,7 +126,7 @@ jobs:
if: ${{ endsWith(matrix.build-target, 'build/ALL/gem5.opt') }}
with:
path: build/ALL
key: testlib-build-all-${{ env.date }}
key: testlib-build-all-${{ needs.get-date.outputs.date }}
restore-keys: |
testlib-build-all
@@ -250,7 +250,7 @@ jobs:
uses: actions/cache@v4
with:
path: build/VEGA_X86
key: testlib-build-vega-${{ env.date }}
key: testlib-build-vega-${{ needs.get-date.outputs.date }}
restore-keys: |
testlib-build-vega

View File

@@ -11,6 +11,8 @@ jobs:
get-date:
runs-on: ubuntu-latest
outputs:
date: ${{ steps.date.outputs.date }}
steps:
- name: Get the current date
id: date
@@ -31,7 +33,7 @@ jobs:
uses: actions/cache/restore@v4
with:
path: build/ALL
key: testlib-build-all-${{ env.date }}
key: testlib-build-all-${{ needs.get-date.outputs.date }}
restore-keys: |
testlib-build-all
- name: ALL/unittests.${{ matrix.type }} UnitTests
@@ -57,13 +59,13 @@ jobs:
uses: actions/cache@v4
with:
path: build/NULL
key: testlib-build-null-${{ env.date }}
key: testlib-build-null-${{ needs.get-date.outputs.date }}
- name: Restore build/ALL cache
uses: actions/cache@v4
with:
path: build/ALL
key: testlib-build-all-${{ env.date }}
key: testlib-build-all-${{ needs.get-date.outputs.date }}
- name: long ${{ matrix.test-type }} tests
working-directory: ${{ github.workspace }}/tests
@@ -101,7 +103,7 @@ jobs:
uses: actions/cache@v4
with:
path: build/ALL
key: testlib-build-all-${{ env.date }}
key: testlib-build-all-${{ needs.get-date.outputs.date }}
restore-keys: |
testlib-build-all
@@ -135,7 +137,7 @@ jobs:
uses: actions/cache@v4
with:
path: build/VEGA_X86
key: testlib-build-vega-${{ env.date }}
key: testlib-build-vega-${{ needs.get-date.outputs.date }}
restore-keys: |
testlib-build-vega

View File

@@ -11,6 +11,8 @@ jobs:
get-date:
runs-on: ubuntu-latest
outputs:
date: ${{ steps.date.outputs.date }}
steps:
- name: Get the current date
id: date
@@ -35,7 +37,7 @@ jobs:
uses: actions/cache@v4
with:
path: build/ALL
key: testlib-build-all-${{ env.date }}
key: testlib-build-all-${{ needs.get-date.outputs.date }}
restore-keys: |
testlib-build-all
@@ -68,7 +70,7 @@ jobs:
uses: actions/cache@v4
with:
path: build/VEGA_X86
key: testlib-build-vega-${{ env.date }}
key: testlib-build-vega-${{ needs.get-date.outputs.date }}
restore-keys: |
testlib-build-vega