@@ -30,10 +30,14 @@ jobs:
3030 needs : LoadJobs_conf
3131 if : needs.LoadJobs_conf.outputs.do_MinBuild == 'true'
3232 # The type of runner that the job will run on
33- runs-on : ubuntu-${{ matrix.os }}
33+ runs-on : ubuntu-latest
34+ container :
35+ image : ubuntu:${{ matrix.os }}
36+ options : >-
37+ -v sources:/__w/${{ github.event.repository.name }}/${{ github.event.repository.name }}
3438 env :
3539 COMPILER : ${{ matrix.compiler }}
36- TAR_CMD : tar_nosuid
40+ TAR_CMD : tar
3741 GHA_OS : ubuntu-${{ matrix.os }}
3842
3943 strategy :
6670 compiler : ' clang'
6771
6872 steps :
73+ - name : Install git
74+ run : |
75+ apt-get update
76+ apt-get install -y git lsb-release gnupg2 wget
77+
6978 - uses : actions/checkout@v6
7079 with :
7180 submodules : ' recursive'
7483 if : endsWith(matrix.compiler, '-cross')
7584 run : sh -x scripts/build/start_container.sh
7685
77- - name : Workaround for tar not being able to access /var/cache/apt/archives
78- if : endsWith(matrix.compiler, '-cross') == 0
79- run : |
80- sudo cp "$(command -v tar)" "$(command -v tar)"_nosuid
81- sudo chmod u+s "$(command -v tar)"
82-
8386 - name : Cache apt-get packages
84- if : endsWith(matrix.compiler, '-cross') == 0
8587 uses : actions/cache@v5
8688 with :
8789 path : /var/cache/apt/archives
9395 - name : Install apt-get updates
9496 run : scripts/ft-apt-get-update.sh
9597
96- - name : Set up Python
97- if : endsWith(matrix.compiler, '-cross') == 0
98- uses : actions/setup-python@v6
99- with :
100- python-version : 3.9
101-
10298 - name : install_depends
10399 run : sh -x scripts/build/install_depends.sh
104100
@@ -114,17 +110,22 @@ jobs:
114110 with :
115111 apt_depends : pkg-config libssl-dev libbcg729-dev libgsm1-dev libsndfile1-dev libunwind-dev libsrtp2-dev libsystemd-dev systemd procps
116112 test_dpkgs_script : ./scripts/do-dpkg-test.sh
113+ os_versions : ' ["ubuntu:26.04", "ubuntu:24.04", "ubuntu:22.04", "debian:13", "debian:12", "debian:11"]'
117114
118115 FullBuild :
119116 name : Full Build
120117 needs : [LoadJobs_conf, MinBuild]
121118 if : ${{ !cancelled() && (success() || failure()) && needs.LoadJobs_conf.outputs.do_FullBuild == 'true' &&
122119 (needs.LoadJobs_conf.outputs.do_MinBuild != 'true' || needs.MinBuild.result == 'success') }}
123120 # The type of runner that the job will run on
124- runs-on : ubuntu-${{ matrix.os }}
121+ runs-on : ubuntu-latest
122+ container :
123+ image : ubuntu:${{ matrix.os }}
124+ options : >-
125+ -v sources:/__w/${{ github.event.repository.name }}/${{ github.event.repository.name }}
125126 env :
126127 COMPILER : ${{ matrix.compiler }}
127- TAR_CMD : tar_nosuid
128+ TAR_CMD : tar
128129 GHA_OS : ubuntu-${{ matrix.os }}
129130
130131 strategy :
@@ -155,20 +156,15 @@ jobs:
155156 compiler : ' clang'
156157
157158 steps :
159+ - name : Install git
160+ run : |
161+ apt-get update
162+ apt-get install -y git lsb-release gnupg2 wget
163+
158164 - uses : actions/checkout@v6
159165 with :
160166 submodules : ' recursive'
161167
162- - name : Start Docker container
163- if : endsWith(matrix.compiler, '-cross')
164- run : sh -x scripts/build/start_container.sh
165-
166- - name : Workaround for tar not being able to access /var/cache/apt/archives
167- if : endsWith(matrix.compiler, '-cross') == 0
168- run : |
169- sudo cp "$(command -v tar)" "$(command -v tar)"_nosuid
170- sudo chmod u+s "$(command -v tar)"
171-
172168 - name : Cache apt-get packages
173169 if : endsWith(matrix.compiler, '-cross') == 0
174170 uses : actions/cache@v5
@@ -182,12 +178,6 @@ jobs:
182178 - name : Install apt-get updates
183179 run : scripts/ft-apt-get-update.sh
184180
185- - name : Set up Python
186- if : endsWith(matrix.compiler, '-cross') == 0
187- uses : actions/setup-python@v6
188- with :
189- python-version : 3.9
190-
191181 - name : install_depends
192182 run : sh -x scripts/build/install_depends.sh
193183
@@ -200,10 +190,14 @@ jobs:
200190 if : ${{ !cancelled() && (success() || failure()) && needs.LoadJobs_conf.outputs.do_FuncTest == 'true' &&
201191 (needs.LoadJobs_conf.outputs.do_FullBuild != 'true' || needs.FullBuild.result == 'success') }}
202192 # The type of runner that the job will run on
203- runs-on : ubuntu-${{ matrix.os }}
193+ runs-on : ubuntu-latest
194+ container :
195+ image : ubuntu:${{ matrix.os }}
196+ options : >-
197+ -v sources:/__w/${{ github.event.repository.name }}/${{ github.event.repository.name }}
204198 env :
205199 COMPILER : ${{ matrix.compiler }}
206- TAR_CMD : tar_nosuid
200+ TAR_CMD : tar
207201 GHA_OS : ubuntu-${{ matrix.os }}
208202
209203 strategy :
@@ -234,15 +228,15 @@ jobs:
234228 compiler : ' clang'
235229
236230 steps :
231+ - name : Install git
232+ run : |
233+ apt-get update
234+ apt-get install -y git lsb-release gnupg2 wget
235+
237236 - uses : actions/checkout@v6
238237 with :
239238 submodules : ' recursive'
240239
241- - name : Workaround for tar not being able to access /var/cache/apt/archives
242- run : |
243- sudo cp "$(command -v tar)" "$(command -v tar)"_nosuid
244- sudo chmod u+s "$(command -v tar)"
245-
246240 - name : Cache apt-get packages
247241 uses : actions/cache@v5
248242 with :
@@ -255,11 +249,6 @@ jobs:
255249 - name : Install apt-get updates
256250 run : scripts/ft-apt-get-update.sh
257251
258- - name : Set up Python
259- uses : actions/setup-python@v6
260- with :
261- python-version : 3.9
262-
263252 - name : install_depends
264253 run : sh -x scripts/build/install_depends.sh
265254
@@ -278,10 +267,14 @@ jobs:
278267 if : ${{ !cancelled() && (success() || failure()) && needs.LoadJobs_conf.outputs.do_Glitch == 'true' &&
279268 (needs.LoadJobs_conf.outputs.do_FuncTest != 'true' || needs.FuncTest.result == 'success') }}
280269 # The type of runner that the job will run on
281- runs-on : ubuntu-${{ matrix.os }}
270+ runs-on : ubuntu-latest
271+ container :
272+ image : ubuntu:${{ matrix.os }}
273+ options : >-
274+ -v sources:/__w/${{ github.event.repository.name }}/${{ github.event.repository.name }}
282275 env :
283276 COMPILER : ${{ matrix.compiler }}
284- TAR_CMD : tar_nosuid
277+ TAR_CMD : tar
285278 GHA_OS : ubuntu-${{ matrix.os }}
286279
287280 strategy :
@@ -312,15 +305,15 @@ jobs:
312305 compiler : ' clang'
313306
314307 steps :
308+ - name : Install git
309+ run : |
310+ apt-get update
311+ apt-get install -y git lsb-release gnupg2 wget
312+
315313 - uses : actions/checkout@v6
316314 with :
317315 submodules : ' recursive'
318316
319- - name : Workaround for tar not being able to access /var/cache/apt/archives
320- run : |
321- sudo cp "$(command -v tar)" "$(command -v tar)"_nosuid
322- sudo chmod u+s "$(command -v tar)"
323-
324317 - name : Cache apt-get packages
325318 uses : actions/cache@v5
326319 with :
@@ -333,11 +326,6 @@ jobs:
333326 - name : Install apt-get updates
334327 run : scripts/ft-apt-get-update.sh
335328
336- - name : Set up Python
337- uses : actions/setup-python@v6
338- with :
339- python-version : 3.9
340-
341329 - name : install_depends
342330 run : sh -x scripts/build/install_depends.sh
343331
0 commit comments