Skip to content

Commit 6d47944

Browse files
committed
CI fixes
1 parent ee81788 commit 6d47944

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/release-build.yml

+16-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ 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
1719
strategy:
1820
matrix:
1921
board:
@@ -45,6 +47,7 @@ jobs:
4547
fi
4648
4749
BUILD_NAME=bootleby-${VERSION}-${{ matrix.board }}
50+
PACKAGE_NAME=bootleby-${{ matrix.board }}
4851
4952
cp target/thumbv8m.main-none-eabihf/release/bootleby ${BUILD_NAME}.elf
5053
arm-none-eabi-objcopy -O binary target/thumbv8m.main-none-eabihf/release/bootleby ${BUILD_NAME}.bin
@@ -56,14 +59,23 @@ jobs:
5659
5760
# Make some info available for later steps
5861
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
5970

6071
- name: Upload artifacts
61-
uses: actions/upload-artifact@v3
72+
uses: actions/upload-artifact@v4
6273
with:
6374
name: ${{ steps.package.outputs.build_name }}
6475
path: |
6576
${{ steps.package.outputs.build_name }}.elf
6677
${{ steps.package.outputs.build_name }}.bin
78+
${{ steps.package.outputs.package_name }}.zip
6779
6880
- name: Create release if tagged
6981
if: startsWith(github.ref, 'refs/tags/')
@@ -86,3 +98,4 @@ jobs:
8698
files: |
8799
${{ steps.package.outputs.build_name}}.elf
88100
${{ steps.package.outputs.build_name}}.bin
101+
${{ steps.package.outputs.package_name }}.zip

0 commit comments

Comments
 (0)