From 94ed6a63a20369a518f114620cbc769ca331a027 Mon Sep 17 00:00:00 2001 From: Nora Widdecke Date: Tue, 27 Apr 2021 09:26:07 +0200 Subject: ci: Run tests on 32-bit MSVC windows. - Build the tests as 32-bit windows binaries. - Uses the stable-i686-pc-windows-msvc toolchain. --- .gitlab-ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d8dbc31d..58fe8b3f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -263,6 +263,35 @@ windows-msvc: variables: CFLAGS: "" # Silence some C warnings when compiling with MSVC +windows-msvc-32: + tags: + - win + - win2019 + stage: build + image: + name: registry.gitlab.com/sequoia-pgp/build-docker-image/windows-msvc + # Set up a 32-bit environment with VsDevCmd.bat -arch=x86, line copied from Dockerfile.windows.msvc + entrypoint: ["C:\\BuildTools\\Common7\\Tools\\VsDevCmd.bat", "-arch=x86", "&&", "type", "README", "&&", "powershell.exe", "-NoLogo", "-ExecutionPolicy", "Bypass"] + only: + variables: + # Forks of this project most likely use gitlab's shared windows runners, which + # do not use the docker executor, so disable the windows jobs for forks. + - $CI_PROJECT_NAMESPACE == "sequoia-pgp" + before_script: + - rm rust-toolchain + - rustup default stable-i686-pc-windows-msvc + - rustup show + - rustc --version --verbose + - cargo --version + script: + # https://github.com/rust-lang/cargo/issues/5015 + - cargo build --manifest-path ffi/Cargo.toml --no-default-features --features crypto-cng,compression + - cargo build --manifest-path openpgp-ffi/Cargo.toml --no-default-features --features crypto-cng,compression + - cargo test --manifest-path openpgp/Cargo.toml --no-default-features --features crypto-cng,compression + after_script: [] + variables: + CFLAGS: "" # Silence some C warnings when compiling with MSVC + variables: DEBIAN_FRONTEND: noninteractive CARGO_HOME: $CI_PROJECT_DIR/../cargo -- cgit v1.2.3