Skip to content

Commit c79a0fe

Browse files
authored
Merge pull request #25 from diddlesnaps/crun-workaround
Workaround Ubuntu 22.04/crun failure in CI
2 parents 13b50f0 + cc1fbbc commit c79a0fe

File tree

3 files changed

+41
-2
lines changed

3 files changed

+41
-2
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright (c) 2024 Markus Falb <markus.falb@mafalb.at>
2+
# GNU General Public License v3.0+
3+
# see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt
4+
---
5+
6+
# https://github.com/actions/runner-images/issues/9425
7+
name: 'Fix crun'
8+
description: 'Fix crun because of incompatible kernel'
9+
10+
inputs:
11+
checksums:
12+
description: 'The path to the CHECKSUM file'
13+
type: string
14+
required: true
15+
16+
runs:
17+
using: composite
18+
steps:
19+
- name: patch crun
20+
shell: bash
21+
env:
22+
URI: https://github.com/containers/crun/releases/download/1.14.4/crun-1.14.4-linux-amd64
23+
CHECKSUMS: ${{ inputs.checksums }}
24+
run: |
25+
cd $(dirname "$CHECKSUMS")
26+
test -f "$(basename $CHECKSUMS)"
27+
curl -Lo crun "$URI"
28+
sha256sum -c "$(basename $CHECKSUMS)"
29+
sudo install crun /usr/bin/crun
30+
...

.github/workflows/test.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ jobs:
1010
unit: # make sure build/ci work properly
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
14+
- name: Install crun
15+
uses: ./.github/actions/fix-crun
16+
with:
17+
checksums: CHECKSUMS
1418
- run: |
1519
npm install
1620
npm run all
@@ -86,7 +90,11 @@ jobs:
8690
runs-on: ${{ matrix.runner }}
8791
steps:
8892
- uses: docker/setup-qemu-action@v2
89-
- uses: actions/checkout@v3
93+
- uses: actions/checkout@v4
94+
- name: Install crun
95+
uses: ./.github/actions/fix-crun
96+
with:
97+
checksums: CHECKSUMS
9098
- uses: ./
9199
id: snapcraft
92100
with:

CHECKSUMS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
4f170aaa10d2ef02560cfb60b67ddfa1a83b1b4f7018227e9cb23a6af3955ec1 crun

0 commit comments

Comments
 (0)