Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
bongbui321 committed Jan 16, 2024
1 parent 171481a commit c58573c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ concurrency:
cancel-in-progress: true

env:
RUN: docker run -v ${{ github.workspace }}:/tmp/openpilot/panda -w /tmp/openpilot/panda -v ${{ github.workspace }}/panda_cache:/tmp/panda_cache -v --rm panda /bin/bash -c
RUN: docker run -v ${{ github.workspace }}:/tmp/openpilot/panda -w /tmp/openpilot/panda -v ${{ github.workspace }}/panda_cache/scons_cache:/tmp/panda_cache/scons_cache -v --rm panda /bin/bash -c
BUILD: |
export DOCKER_BUILDKIT=1
docker build --pull --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from ghcr.io/commaai/panda:latest -t panda -f Dockerfile .
Expand Down
3 changes: 0 additions & 3 deletions SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,6 @@ def build_project(project_name, project, extra_flags):
sign_py = File(f"{panda_root}/crypto/sign.py").srcnode().relpath
env.Command(f"obj/{project_name}.bin.signed", main_bin, f"SETLEN=1 {sign_py} $SOURCE $TARGET {cert_fn}")

cache_dir = "/tmp/panda_cache/scons_cache"
CacheDir(cache_dir)
Clean(["."], cache_dir)

base_project_f4 = {
"MAIN": "main.c",
Expand Down
4 changes: 4 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@ AddOption('--coverage',
help='build with test coverage options')


cache_dir = "/tmp/panda_cache/scons_cache"
CacheDir(cache_dir)
#Clean(["."], cache_dir)

# panda fw & test files
SConscript('SConscript')

0 comments on commit c58573c

Please sign in to comment.