CI: use default caching action (#29339)

This commit is contained in:
Justin Newberry
2023-08-11 14:03:10 -07:00
committed by GitHub
parent 233e053842
commit a0f399677e
2 changed files with 13 additions and 19 deletions
+2 -12
View File
@@ -1,10 +1,5 @@
name: 'openpilot env setup'
inputs:
save-cache:
default: false
required: false
runs:
using: "composite"
steps:
@@ -18,13 +13,8 @@ runs:
run: echo "CACHE_COMMIT_DATE=$(git log -1 --pretty='format:%cd' --date=format:'%Y-%m-%d-%H:%M')" >> $GITHUB_ENV
- shell: bash
run: echo "$CACHE_COMMIT_DATE"
- shell: bash
run: echo "CACHE_SKIP_SAVE=true" >> $GITHUB_ENV
if: github.ref != 'refs/heads/master' || inputs.save-cache == 'false'
- id: scons-cache
# TODO: change the version to the released version
# when https://github.com/actions/cache/pull/489 (or 571) is merged.
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b
- id: restore-scons-cache
uses: actions/cache/restore@v3
with:
path: /tmp/scons_cache
key: scons-${{ env.CACHE_COMMIT_DATE }}-${{ github.sha }}