File tree 1 file changed +16
-3
lines changed
1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 12
12
13
13
jobs :
14
14
release-build :
15
- runs-on : ubuntu-latest
16
-
15
+ runs-on : oxide-colo-builder-hubris
16
+ permissions :
17
+ id-token : write
18
+ attestations : write
17
19
strategy :
18
20
matrix :
19
21
board :
45
47
fi
46
48
47
49
BUILD_NAME=bootleby-${VERSION}-${{ matrix.board }}
50
+ PACKAGE_NAME=bootleby-${{ matrix.board }}
48
51
49
52
cp target/thumbv8m.main-none-eabihf/release/bootleby ${BUILD_NAME}.elf
50
53
arm-none-eabi-objcopy -O binary target/thumbv8m.main-none-eabihf/release/bootleby ${BUILD_NAME}.bin
@@ -56,14 +59,23 @@ jobs:
56
59
57
60
# Make some info available for later steps
58
61
echo "build_name=${BUILD_NAME}" >> "${GITHUB_OUTPUT}"
62
+ echo "package_name=${PACKAGE_NAME}" >> "${GITHUB_OUTPUT}"
63
+
64
+ cargo xtask package --board ${{ matrix.board }} --out ${PACKAGE_NAME}.zip
65
+
66
+ - name : Attestation
67
+ uses : actions/attest-build-provenance@v1
68
+ with :
69
+ subject-path : ${{ steps.package.outputs.package_name }}.zip
59
70
60
71
- name : Upload artifacts
61
- uses : actions/upload-artifact@v3
72
+ uses : actions/upload-artifact@v4
62
73
with :
63
74
name : ${{ steps.package.outputs.build_name }}
64
75
path : |
65
76
${{ steps.package.outputs.build_name }}.elf
66
77
${{ steps.package.outputs.build_name }}.bin
78
+ ${{ steps.package.outputs.package_name }}.zip
67
79
68
80
- name : Create release if tagged
69
81
if : startsWith(github.ref, 'refs/tags/')
86
98
files : |
87
99
${{ steps.package.outputs.build_name}}.elf
88
100
${{ steps.package.outputs.build_name}}.bin
101
+ ${{ steps.package.outputs.package_name }}.zip
You can’t perform that action at this time.
0 commit comments