We had the same issue in gnutls. You can apply this patch.

On Sat, Jan 25, 2020 at 8:21 PM Niels Möller <[email protected]> wrote:
>
> Hi,
>
> it seems some of the recent gitlab ci jobs for some reason run on some
> windows infrastructure. I can see that might be useful for some
> projects, if you want to support and test native windows builds or
> something. But for Nettle, it's neither helpful nor working, e.g.,
>
> https://gitlab.com/gnutls/nettle/-/jobs/414926707
>
> fails because build scripts are running in some windows shell not
> recognizing a /bin/sh for loop.
>
> Can we add some "Windows? Just say no!" in nettle/.gitlab-ci.yml, to get
> it back in working shape? Or do some higher-level config for the gnutls
> project on gitlab?
>
> Regards,
> /Niels
> --
> Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
> Internet email is subject to wholesale government surveillance.
>
> _______________________________________________
> nettle-bugs mailing list
> [email protected]
> http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs
From 341f0345e36625fbee4378587ab9a9aa4eb1b250 Mon Sep 17 00:00:00 2001
From: Nikos Mavrogiannopoulos <[email protected]>
Date: Sat, 25 Jan 2020 20:56:40 +0100
Subject: [PATCH] .gitlab-ci.yml: require linux systems for running CI

Gitlab added windows shared runners and we should avoid
running CI in this environment as it will immediatelly
fail.

Signed-off-by: Nikos Mavrogiannopoulos <[email protected]>
---
 .gitlab-ci.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 85acdf14..663f98f5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -18,6 +18,7 @@ build/x86-64:
     make check -j4
   tags:
   - shared
+  - linux
   except:
   - tags
 build/mini-gmp:
@@ -28,6 +29,7 @@ build/mini-gmp:
     make check -j4
   tags:
   - shared
+  - linux
   except:
   - tags
 build/c89:
@@ -38,6 +40,7 @@ build/c89:
     make check -j4
   tags:
   - shared
+  - linux
   except:
   - tags
 build/ndebug:
@@ -48,6 +51,7 @@ build/ndebug:
     make check -j4
   tags:
   - shared
+  - linux
   except:
   - tags
 build/ubsan:
@@ -58,6 +62,7 @@ build/ubsan:
     --disable-documentation && make -j4 && make check -j4
   tags:
   - shared
+  - linux
   except:
   - tags
 build/asan:
@@ -68,6 +73,7 @@ build/asan:
     make -j4 && make check -j4
   tags:
   - shared
+  - linux
   except:
   - tags
 build/static-analyzers:
@@ -78,6 +84,7 @@ build/static-analyzers:
   - scan-build --status-bugs -o scan-build-lib make -j$(nproc)
   tags:
   - shared
+  - linux
   except:
   - tags
   artifacts:
@@ -97,6 +104,7 @@ build/gnutls:
     make -j $(nproc) check
   tags:
   - shared
+  - linux
   except:
   - tags
   artifacts:
@@ -122,6 +130,7 @@ Debian.cross.x86:
     make check -j4
   tags:
   - shared
+  - linux
   except:
   - tags
 .Debian.cross.template: &Debian_cross_template
@@ -143,6 +152,7 @@ Debian.cross.x86:
   - make -j$(nproc) check
   tags:
   - shared
+  - linux
   except:
   - tags
 Debian.cross.arm-linux-gnueabihf:
-- 
2.24.1

_______________________________________________
nettle-bugs mailing list
[email protected]
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs

Reply via email to