mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 17:43:54 +08:00
28 lines
765 B
YAML
28 lines
765 B
YAML
name: 'openpilot env setup'
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
# do this after checkout to ensure our custom LFS config is used to pull from GitLab
|
|
- shell: bash
|
|
run: git lfs pull
|
|
|
|
# build cache
|
|
- id: date
|
|
shell: bash
|
|
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"
|
|
- id: restore-scons-cache
|
|
uses: actions/cache/restore@v3
|
|
with:
|
|
path: /tmp/scons_cache
|
|
key: scons-${{ env.CACHE_COMMIT_DATE }}-${{ github.sha }}
|
|
restore-keys: |
|
|
scons-${{ env.CACHE_COMMIT_DATE }}-
|
|
scons-
|
|
|
|
# build our docker image
|
|
- shell: bash
|
|
run: eval ${{ env.BUILD }}
|