mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 22:23:56 +08:00
CI: use scons cache mount for building simulator and docs (#29436)
* build docker image with scons cache
* use setup
* scons cache
* added the dockerfile
* add the shell
* docs use cache
* dont pull lfs for docs
* simulator too
* dont pull the cache image
* fix inputs
* inputs
* booleans aren't supported
* bool not supported
* bool isnt supported
* fix
* readonly cache
* fix sim cache too
* respect readonly
* gitignore and move to correct folder
* also copy old
* move to tools/ci
* move to selfdrive/test
* just make the cache writable, it's discarded anyway
* minimize diff in this pr
old-commit-hash: 197460e061
This commit is contained in:
13
.github/workflows/setup/action.yaml
vendored
13
.github/workflows/setup/action.yaml
vendored
@@ -1,6 +1,10 @@
|
||||
name: 'openpilot env setup'
|
||||
|
||||
inputs:
|
||||
setup_docker_scons_cache:
|
||||
description: 'Whether or not to build the scons-cache docker image'
|
||||
required: false
|
||||
default: 'false'
|
||||
git_lfs:
|
||||
description: 'Whether or not to pull the git lfs'
|
||||
required: false
|
||||
@@ -28,7 +32,14 @@ runs:
|
||||
restore-keys: |
|
||||
scons-${{ env.CACHE_COMMIT_DATE }}-
|
||||
scons-
|
||||
|
||||
- id: setup-scons-cache-docker
|
||||
name: Sets up a docker image with scons cache that can by mounted as a buildkit cache mount
|
||||
shell: bash
|
||||
if: ${{ inputs.setup_docker_scons_cache == 'true' }}
|
||||
run: |
|
||||
cp selfdrive/test/Dockerfile.scons_cache ~
|
||||
cd ~
|
||||
DOCKER_BUILDKIT=1 docker build -t scons-cache -f Dockerfile.scons_cache .
|
||||
# build our docker image
|
||||
- shell: bash
|
||||
run: eval ${{ env.BUILD }}
|
||||
|
||||
Reference in New Issue
Block a user