Skip to content

Commit 14e86d9

Browse files
authored
Merge pull request #487 from balena-os/kyle/upload-logs
Upload yocto build logs with existing artifacts
2 parents 8d8a26d + 30bb899 commit 14e86d9

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/yocto-build-deploy.yml

+17
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,23 @@ jobs:
599599
exit 1
600600
fi
601601
602+
# We don't need to encrypt these as they are not sensitive if the repo is public anyway.
603+
# https://github.com/actions/upload-artifact
604+
- name: Upload build logs
605+
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
606+
# always upload build logs, even if the build fails
607+
if: always()
608+
with:
609+
name: build-logs
610+
if-no-files-found: error
611+
retention-days: 7
612+
compression-level: 7
613+
path: |
614+
balena-build.log
615+
build/tmp/log/**/*.log
616+
build/tmp/work/**/run.*
617+
build/tmp/work/**/log.*
618+
602619
# If there was a cache miss for this key, save a new cache.
603620
# Use local S3 cache on self-hosted runners.
604621
# https://github.com/tespkg/actions-cache

0 commit comments

Comments
 (0)