Skip to content

Commit

Permalink
ci: update cache after failed build
Browse files Browse the repository at this point in the history
  • Loading branch information
Josua-SR committed Oct 4, 2024
1 parent f815cd2 commit 1fcc3db
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
path: |
buildcache
- name: Build
- name: Build (may fail)
shell: bash
run: |
WORKDIR=$(pwd)
Expand All @@ -108,9 +108,8 @@ jobs:
export BB_ENV_PASSTHROUGH_ADDITIONS="$BB_ENV_PASSTHROUGH_ADDITIONS CACHE_DIR"
echo "require conf/include/ci.conf" >> conf/local.conf
cat conf/local.conf
bitbake core-image-minimal imx-image-full imx-hailo-demo-image --runall=fetch -k
bitbake core-image-minimal imx-image-full imx-hailo-demo-image -k
bitbake core-image-minimal imx-image-full imx-hailo-demo-image
bitbake core-image-minimal imx-image-full imx-hailo-demo-image --runall=fetch -k || true
bitbake core-image-minimal imx-image-full imx-hailo-demo-image -k || true
- name: Update cache on the server
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
Expand All @@ -127,6 +126,16 @@ jobs:
path: |
buildcache
- name: Build (must succeed)
shell: bash
run: |
WORKDIR=$(pwd)
. ./setup-environment build-xwayland-imx8mpsolidrun
export CACHE_DIR="$WORKDIR/buildcache"
export BB_ENV_PASSTHROUGH_ADDITIONS="$BB_ENV_PASSTHROUGH_ADDITIONS CACHE_DIR"
cat conf/local.conf
bitbake core-image-minimal imx-image-full imx-hailo-demo-image
- name: Copy deploy artifacts
shell: bash
run: |
Expand Down

0 comments on commit 1fcc3db

Please sign in to comment.