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