Skip to content

Commit 9f4df5c

Browse files
committed
step
1 parent 0820fac commit 9f4df5c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/package_core.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
- name: Build loader
9191
shell: bash
9292
run: |
93-
if ! ./extra/build.sh ${{ matrix.board }} 2>(tee error.log) ; then
93+
if ! bash -c './extra/build.sh ${{ matrix.board }} 2>(tee error.log)' ; then
9494
echo "\`\`\`" > $GITHUB_STEP_SUMMARY
9595
cat error.log >> $GITHUB_STEP_SUMMARY
9696
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
@@ -100,7 +100,11 @@ jobs:
100100
- name: Package board binaries
101101
if: ${{ !cancelled() }}
102102
run: |
103-
tar chf - build/${{ matrix.variant }} firmwares/*${{ matrix.variant }}* variants/${{ matrix.variant }}/ | zstd > ${OUTPUT_ARTIFACT}.tar.zstd
103+
tar chf - \
104+
firmwares/*${{ matrix.variant }}* \
105+
variants/${{ matrix.variant }}/ \
106+
${{ (job.status == 'failure') && format('build/{0}/', matrix.variant }} \
107+
| zstd > ${OUTPUT_ARTIFACT}.tar.zstd
104108
105109
- name: Archive board binaries
106110
if: ${{ !cancelled() }}

0 commit comments

Comments
 (0)