]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
gitlab-ci: No-assembly cross-build for s390x, to test big-endian
authorNiels Möller <nisse@lysator.liu.se>
Mon, 30 Aug 2021 19:33:12 +0000 (21:33 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Mon, 30 Aug 2021 19:33:12 +0000 (21:33 +0200)
.gitlab-ci.yml

index 05af518d7a474ed3f5ea98e7ee7e5f0abf1ac9ea..3ccbbb9f24339699cac1bcc6950566739c7b5867 100644 (file)
@@ -140,11 +140,13 @@ Debian.cross.x86:
   before_script:
   - host="${CI_JOB_NAME#*.cross.}"
   - dpkg --add-architecture ppc64el
+  - dpkg --add-architecture s390x
   - apt-get update -q
   # remove any previously installed nettle headers to avoid conflicts
   - for arch in armhf arm64 ppc64el;do apt-get remove -y nettle-dev:$arch;done
   - if [ "$host" == "powerpc64-linux-gnu" ];then apt-get update && apt-get install -y gcc-$host g++-$host && export QEMU_LD_PREFIX=/usr/$host;fi
   - if [ "$host" == "powerpc64le-linux-gnu" ];then apt-get update && apt-get install -y gcc-$host g++-$host && export QEMU_LD_PREFIX=/usr/$host;fi
+  - if [ "$host" == "s390x-linux-gnu" ];then apt-get update && apt-get install -y gcc-$host g++-$host libc6:s390x && export EXTRA_CONFIGURE_FLAGS='--disable-assembler';fi
   script:
   - build=$(dpkg-architecture -qDEB_HOST_GNU_TYPE)
   - host="${CI_JOB_NAME#*.cross.}"
@@ -154,7 +156,7 @@ Debian.cross.x86:
   - export CC_FOR_BUILD="gcc"
   - export CC="$host-gcc"
   - ./.bootstrap
-  - ./configure --disable-static --disable-documentation --build=$build --host=$host
+  - ./configure --disable-static --disable-documentation $EXTRA_CONFIGURE_FLAGS --build=$build --host=$host
   - make -j$(nproc)
   - make -j$(nproc) check
   - make -j$(nproc) check-fat
@@ -171,6 +173,8 @@ Debian.cross.powerpc64-linux-gnu:
   <<: *Debian_cross_template
 Debian.cross.powerpc64le-linux-gnu:
   <<: *Debian_cross_template
+Debian.cross.s390x-linux-gnu:
+  <<: *Debian_cross_template
 
 remote/s390x:
   image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD