@@ -222,8 +222,6 @@ jobs:
222
222
with :
223
223
arch : ${{ matrix.config.arch }}
224
224
225
- # TODO: Cache the docker container
226
-
227
225
- name : Get latest LLVM version
228
226
if : startsWith(matrix.config.name, 'Windows Clang')
229
227
run : |
@@ -284,14 +282,29 @@ jobs:
284
282
echo "DESTDIR=${DESTDIR}" >> $GITHUB_ENV
285
283
shell : bash
286
284
287
- - name : Configuring and compiling with meson
285
+ - name : Install Meson and Ninja (container)
286
+ if : matrix.config.image != ''
287
+ run : |
288
+ python3 -m venv /tmp/venv
289
+ . /tmp/venv/bin/activate
290
+ pip install meson ninja
291
+ echo "VENV_PYTHON=/tmp/venv/bin/python3" >> $GITHUB_ENV
292
+ echo "VENV_MESON=/tmp/venv/bin/meson" >> $GITHUB_ENV
293
+
294
+
295
+ - name : Install Meson and Ninja (Github runners)
296
+ if : matrix.config.image == ''
288
297
env :
289
298
CC : ${{ matrix.config.cc }}
290
299
CXX : ${{ matrix.config.cxx }}
291
300
run : |
292
301
pip install meson ninja
293
- meson setup build -Dprefix=/ -Dmandir=/man -Dbindir=/ ${{ matrix.config.meson_opts }} --buildtype=release
294
- meson install -C build
302
+
303
+ - name : Configure and build with Meson
304
+ run : |
305
+ ${VENV_MESON:-meson} setup build -Dprefix=/ -Dmandir=/man -Dbindir=/ ${{ matrix.config.meson_opts }} --buildtype=release
306
+ ${VENV_MESON:-meson} install -C build
307
+
295
308
296
309
# add `GOBIN` to the `PATH` otherwise nfpm in next step can't be found
297
310
- uses : actions/setup-go@v5
0 commit comments