This repository has been archived by the owner on Aug 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (50 loc) · 1.81 KB
/
sysexts.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: System Extensions
on:
workflow_dispatch:
jobs:
system-extensions:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch: [ x86-64, arm64 ]
steps:
- uses: actions/checkout@v4
# Workaround for https://github.com/actions/runner-images/issues/9425, to be removed once the issue is resolved
- name: patch crun (Workaround for https://github.com/actions/runner-images/issues/9425)
run: |
tmpdir="$(mktemp -d)"
pushd "$tmpdir"
curl -Lo ./crun https://github.com/containers/crun/releases/download/1.14.3/crun-1.14.3-linux-amd64
GOOD_SHA=80c5ab9422d4672f650f2bad3da933568349b64117d055486abc3534517be2af
sha256sum ./crun
OUR_SHA=$(sha256sum ./crun | awk '{ print $1 }')
if [[ "$GOOD_SHA" == "$OUR_SHA" ]]; then
sudo install crun /usr/bin/crun
else
echo "Checksums do not match"
exit 1
fi
popd
rm -rf "$tmpdir"
shell: bash
- name: Show crun version after the patch
shell: bash
run: |
crun --version
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Setup mkosi
uses: systemd/mkosi@v18
- name: Build base image
run: sudo mkosi --architecture=${{ matrix.arch }}
working-directory: ./sysexts/mkosi/debian-testing-base
- name: Build debug image
run: sudo mkosi build --base-tree=../debian-testing-base --overlay --architecture=${{ matrix.arch }}
working-directory: ./sysexts/mkosi/debug
- name: Upload debian ${{ matrix.arch }} image
uses: actions/upload-artifact@v3
with:
name: debug-${{ matrix.arch }}
path: sysexts/mkosi/debug/debug.raw
retention-days: 2