Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: build: throw away the previous build artifacts #159

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ jobs:
# Keeping the build directory gives us incremental builds,
# with all its benefits (speed) and drawbacks (reproducibility).

# Make sure we start with a fresh config.
rm -rf build/conf
# Make sure we start with a fresh config and and without build
# artifacts other than the sstate.
rm -rf build/conf build/tmp

# oe-init-build-env implicitly cd-s into the build directory.
cd source
Expand All @@ -54,6 +55,10 @@ jobs:
emmc-image \
emmc-boot-image \
tf-a-stm32mp

# Clean up before persisting the disk image,
# keeping only the downloads and sstate.
rm -rf build/conf build/tmp
- name: Persist the disk image
env:
PERSISTENCE_TOKEN: ${{ secrets.PERSISTENCE_TOKEN }}
Expand Down