Skip to content

Commit a4c1268

Browse files
committed
ARM CI: use GH runner ubuntu-22.04
Use runner ubuntu-22.04 instead of ubuntu-latest. Because ubuntu-latest has switched to ubuntu-24.04 recently, whiich breaks the build for arm64. There seem to be an unresolved bug in QEMU >= 8.1 (U24.04 has v8.2.2) when using ARM64 and bullseye: <https://gitlab.com/qemu-project/qemu/-/issues/2377>. (ARM64 buster and bookworm, as well as ARMHF, may be fine as indicated in the bug description.) This can be reverted later (either when fixed in QEMU or when switched the chroot to bookworm). But it shouldn't matter much, anyways, since this is just the "host" environment. Also include runner ver in chroot key because it seem to make a difference from the above..
1 parent 22c800d commit a4c1268

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/scripts/environment.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ if ! is_arm; then
107107
fi
108108

109109
printf '%b' "FEATURES=$FEATURES\n" >> "$GITHUB_ENV"
110+
# populate /etc/environment-defined var to global env
111+
# shellcheck disable=SC2154 # defined by runner in /etc/environment
112+
printf '%b' "ImageOS=$ImageOS\n" >> "$GITHUB_ENV"
110113

111114
if [ "$(uname -s)" = Darwin ] && [ "$(uname -m)" != arm64 ]; then
112115
export UG_ARCH=-msse4.2

.github/workflows/arm-build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
Build:
1313
if: github.repository == 'CESNET/UltraGrid' || github.event.schedule == null
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-22.04 # TODO: see the commit message why 22.04 is explicit
1515
strategy:
1616
matrix:
1717
arch: [armhf, arm64]
@@ -55,7 +55,9 @@ jobs:
5555
uses: actions/cache@main
5656
with:
5757
path: '~/chroot.tar'
58-
key: cache-bootstrap-${{ matrix.arch }}-${{ hashFiles('.github/scripts/Linux/arm/bootstrap.sh', '.github/scripts/Linux/install_others.sh') }}
58+
key: cache-bootstrap-${{ env.ImageOS }}-${{ matrix.arch }}-${{
59+
hashFiles('.github/scripts/Linux/arm/bootstrap.sh',
60+
'.github/scripts/Linux/install_others.sh') }}
5961
- name: Debootstrap
6062
if: steps.cache-bootstrap.outputs.cache-hit != 'true'
6163
run: |

0 commit comments

Comments
 (0)