Skip to content

Commit 953e2f9

Browse files
committed
CI fixes
1 parent ee81788 commit 953e2f9

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/release-build.yml

+17-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ env:
1212

1313
jobs:
1414
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
1720
strategy:
1821
matrix:
1922
board:
@@ -45,6 +48,7 @@ jobs:
4548
fi
4649
4750
BUILD_NAME=bootleby-${VERSION}-${{ matrix.board }}
51+
PACKAGE_NAME=bootleby-${{ matrix.board }}
4852
4953
cp target/thumbv8m.main-none-eabihf/release/bootleby ${BUILD_NAME}.elf
5054
arm-none-eabi-objcopy -O binary target/thumbv8m.main-none-eabihf/release/bootleby ${BUILD_NAME}.bin
@@ -56,14 +60,23 @@ jobs:
5660
5761
# Make some info available for later steps
5862
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
5971

6072
- name: Upload artifacts
61-
uses: actions/upload-artifact@v3
73+
uses: actions/upload-artifact@v4
6274
with:
6375
name: ${{ steps.package.outputs.build_name }}
6476
path: |
6577
${{ steps.package.outputs.build_name }}.elf
6678
${{ steps.package.outputs.build_name }}.bin
79+
${{ steps.package.outputs.package_name }}.zip
6780
6881
- name: Create release if tagged
6982
if: startsWith(github.ref, 'refs/tags/')
@@ -86,3 +99,4 @@ jobs:
8699
files: |
87100
${{ steps.package.outputs.build_name}}.elf
88101
${{ steps.package.outputs.build_name}}.bin
102+
${{ steps.package.outputs.package_name }}.zip

0 commit comments

Comments
 (0)