]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
.gitlab-ci.yml: mount binfmt_misc only at test phase
authorDaiki Ueno <ueno@gnu.org>
Sun, 20 Jul 2025 08:01:05 +0000 (17:01 +0900)
committerDaiki Ueno <ueno@gnu.org>
Sun, 20 Jul 2025 08:01:05 +0000 (17:01 +0900)
When cross-compiling to MinGW, the wine registration to binfmt_misc is
only needed when running tests, not when bootstrapping nor building.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
.gitlab-ci.yml

index e4547e254560bb6fadae2239dd2eb2ddae4340dd..5a8edb027d4042240004702e060d1d2d16aa371f 100644 (file)
@@ -134,8 +134,6 @@ default:
       if test -e stamp.pre-bootstrap; then
         devel/preserve-timestamp --restore stamp.pre-bootstrap
       fi
-    - mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
-    - echo ':DOSWin:M::MZ::/usr/bin/wine:' > /proc/sys/fs/binfmt_misc/register
   # FIXME: the above step doesn't work on a rootless container
   allow_failure: true
 
@@ -918,6 +916,9 @@ debian/test:
 .mingw/test:
   extends:
     - .test
+  before_script:
+    - mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
+    - echo ':DOSWin:M::MZ::/usr/bin/wine:' > /proc/sys/fs/binfmt_misc/register
   script:
     # https://bugzilla.redhat.com/show_bug.cgi?id=2049401
     - mingw${arch_bits}-make -j$CHECKJOBS -C $PWD/tests check