Skip to content

Commit d1288ee

Browse files
authored
Run build on deprecated Ubuntu 20.04 in a container (#718)
The ubuntu-20.04 GitHub runner will be discontinued in around a month. We can still test on this OS, by running these jobs in a container.
1 parent 457adbb commit d1288ee

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/dev.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,15 @@ jobs:
9191
greatawk:
9292
# Tests with: GCC, -O3, oldest supported Ubuntu (in non-extended support)
9393
name: GCC -O3
94-
runs-on: ubuntu-20.04
94+
runs-on: ubuntu-latest
95+
container: ubuntu:20.04
9596
steps:
97+
- name: Setup
98+
run: |
99+
export DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC
100+
apt-get -qq update
101+
apt-get -qq install -y git build-essential cmake
102+
96103
- name: Checkout
97104
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
98105
with:
@@ -117,8 +124,15 @@ jobs:
117124
dodo:
118125
# Tests with: Autconf on oldest supported Ubuntu (in non-extended support)
119126
name: GCC -Os, old Autotools
120-
runs-on: ubuntu-20.04
127+
runs-on: ubuntu-latest
128+
container: ubuntu:20.04
121129
steps:
130+
- name: Setup
131+
run: |
132+
export DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC
133+
apt-get -qq update
134+
apt-get -qq install -y git build-essential autoconf automake libtool
135+
122136
- name: Checkout
123137
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
124138
with:

0 commit comments

Comments
 (0)