-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed references to cache which used time as the key and didn't speed up the CI
- Loading branch information
Showing
7 changed files
with
0 additions
and
201 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,42 +25,6 @@ jobs: | |
git ccache python3-minimal python3-pip device-tree-compiler \ | ||
gcc-riscv64-unknown-elf build-essential ninja-build | ||
- name: Setup Cache Metadata | ||
id: cache_metadata | ||
run: | | ||
date=$(date +"%Y_%m_%d") | ||
time=$(date +"%Y%m%d_%H%M%S_%N") | ||
cache_test_restore_key=${{ matrix.test }}_${{ matrix.coverage }}_ | ||
cache_test_key=${cache_test_restore_key}${time} | ||
echo "date=$date" | tee -a "$GITHUB_ENV" | ||
echo "time=$time" | tee -a "$GITHUB_ENV" | ||
echo "cache_test_restore_key=$cache_test_restore_key" | tee -a "$GITHUB_ENV" | ||
echo "cache_test_key=$cache_test_key" | tee -a "$GITHUB_ENV" | ||
- name: Setup tests cache | ||
uses: actions/cache@v3 | ||
id: cache-test-setup | ||
with: | ||
path: | | ||
${{ env.CCACHE_DIR }} | ||
key: ${{ env.cache_test_key }} | ||
restore-keys: ${{ env.cache_test_restore_key }} | ||
|
||
- name: Create Cache Timestamp | ||
id: cache_timestamp | ||
uses: nanzm/[email protected] | ||
with: | ||
format: 'YYYY-MM-DD-HH-mm-ss' | ||
|
||
- name: Setup cache | ||
uses: actions/cache@v2 | ||
timeout-minutes: 60 | ||
continue-on-error: true | ||
with: | ||
path: "/opt/veer-el2/.cache/" | ||
key: cache_riscof_tests_${{ steps.cache_timestamp.outputs.time }} | ||
restore-keys: cache_riscof_tests_ | ||
|
||
- name: Setup repository | ||
uses: actions/checkout@v2 | ||
with: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,21 +148,6 @@ jobs: | |
gcc-riscv64-unknown-elf | ||
riscv64-unknown-elf-gcc --version | ||
- name: Setup Cache Metadata | ||
id: cache_metadata | ||
run: | | ||
date=$(date +"%Y_%m_%d") | ||
time=$(date +"%Y%m%d_%H%M%S_%N") | ||
cache_test_restore_key=${{ matrix.test }}_${{ matrix.coverage }}_ | ||
cache_test_key=${cache_test_restore_key}${time} | ||
cache_code=cache_${{ matrix.test }}_${{ matrix.version }} | ||
echo "date=$date" | tee -a "$GITHUB_ENV" | ||
echo "time=$time" | tee -a "$GITHUB_ENV" | ||
echo "cache_test_restore_key=$cache_test_restore_key" | tee -a "$GITHUB_ENV" | ||
echo "cache_test_key=$cache_test_key" | tee -a "$GITHUB_ENV" | ||
echo "cache_code=${cache_code}_${{ env.CACHE_HASH }}" | tee -a "$GITHUB_ENV" | ||
- name: Setup repository | ||
uses: actions/checkout@v3 | ||
with: | ||
|
@@ -181,21 +166,6 @@ jobs: | |
run: | | ||
pip install -r third_party/riscv-dv/requirements.txt | ||
- name: Create Cache Timestamp | ||
id: cache_timestamp | ||
uses: nanzm/[email protected] | ||
with: | ||
format: 'YYYY-MM-DD-HH-mm-ss' | ||
|
||
- name: Setup cache | ||
uses: actions/cache@v3 | ||
timeout-minutes: 60 | ||
continue-on-error: true | ||
with: | ||
path: "/opt/veer-el2/.cache/" | ||
key: cache_tests_${{ steps.cache_timestamp.outputs.time }} | ||
restore-keys: cache_tests_ | ||
|
||
- name: Download Code Artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
|
@@ -284,29 +254,6 @@ jobs: | |
run: | | ||
pip3 install -r third_party/riscv-dv/requirements.txt | ||
- name: Setup Cache Metadata | ||
id: cache_metadata | ||
run: | | ||
date=$(date +"%Y_%m_%d") | ||
time=$(date +"%Y%m%d_%H%M%S_%N") | ||
cache_test_restore_key=${{ matrix.test }}_${{ matrix.coverage }}_ | ||
cache_test_key=${cache_test_restore_key}${time} | ||
cache_code=cache_${{ matrix.test }}_${{ matrix.version }} | ||
echo "date=$date" | tee -a "$GITHUB_ENV" | ||
echo "time=$time" | tee -a "$GITHUB_ENV" | ||
echo "cache_test_restore_key=$cache_test_restore_key" | tee -a "$GITHUB_ENV" | ||
echo "cache_test_key=$cache_test_key" | tee -a "$GITHUB_ENV" | ||
echo "cache_code=${cache_code}_${{ env.CACHE_HASH }}" | tee -a "$GITHUB_ENV" | ||
- name: Cache Code Restore | ||
uses: actions/cache/restore@v3 | ||
id: cache-code-restore | ||
timeout-minutes: 60 | ||
with: | ||
path: tools/riscv-dv/work/test_${{ matrix.test }}/asm_test | ||
key: ${{ env.cache_code }} | ||
|
||
- name: Perform custom tests | ||
run: _secret_custom_run | ||
env: | ||
|
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
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
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