Skip to content

Commit a29273d

Browse files
committed
Run the type-sizes test in CI
This change necessitates switching from running the CI job straight on the GitHub Actions Ubuntu runner to using a container, as the runners use an old Ubuntu version that does not ship SDL3.
1 parent 0a7f2a0 commit a29273d

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,17 @@ jobs:
3737
source: units/SDL3_textengine.pas
3838
verbosity: ewnh
3939

40-
ubuntu-24-04:
41-
runs-on: ubuntu-24.04
40+
# This job runs inside a Fedora Rawhide container instead of straight
41+
# on the Ubuntu runner, because (at the moment of writing this comment)
42+
# the latest Ubuntu version supported by GitHub Actions is 24.04, which
43+
# does not have an SDL3 package.
44+
fedora-rawhide:
45+
runs-on: ubuntu-latest
46+
container: registry.fedoraproject.org/fedora:rawhide
4247
steps:
4348
- name: Install FPC
4449
run: |
45-
export DEBIAN_FRONTEND=noninteractive
46-
sudo apt update
47-
sudo apt install -y fpc
50+
dnf install --assumeyes --setopt=install_weak_deps=False diffutils gcc fpc SDL3-devel
4851
- name: Checkout code
4952
uses: actions/checkout@v2
5053
- name: Compile SDL3 unit
@@ -67,6 +70,8 @@ jobs:
6770
with:
6871
source: units/SDL3_textengine.pas
6972
verbosity: ewnh
73+
- name: Run type-sizes test
74+
run: ./tests/type-sizes.sh
7075

7176
windows-2025:
7277
runs-on: windows-2025

0 commit comments

Comments
 (0)