Skip to content

Commit

Permalink
chore(build): Improve build caching so subsequent builds dont take so…
Browse files Browse the repository at this point in the history
… long. (#108)
  • Loading branch information
vegano1 authored Sep 25, 2023
1 parent c3ddd6d commit f6b8779
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-ot3-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,6 @@ jobs:
run: |
rm -rf ./*
- name: Remove poisoned cache
if: ${{ !success() }}
if: ${{ failure() }}
run: |
rm -rf ${LOCAL_CACHE:-./cache}/*
2 changes: 2 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ export BITBAKEDIR=${THISDIR}/tools/bitbake
# so for now lets manually create a symlink and set its download location to /volumes/cache
mkdir -p /volumes/cache/electron
mkdir -p /volumes/cache/yarn
mkdir -p /volumes/cache/pip
mkdir -p ~/.cache/
ln -sf /volumes/cache/electron ~/.cache/electron
ln -sf /volumes/cache/yarn ~/.cache/yarn
ln -sf /volumes/cache/pip ~/.cache/pip

BB_NUMBER_THREADS=$(nproc) bitbake ${TARGET} "$@"
exit $?

0 comments on commit f6b8779

Please sign in to comment.