diff options
author | Igor Matuszewski <igor@sequoia-pgp.org> | 2020-06-29 10:48:47 +0200 |
---|---|---|
committer | Igor Matuszewski <igor@sequoia-pgp.org> | 2020-08-13 15:19:58 +0200 |
commit | fe5eea63668dd8d1604bc39ef38484330a8a9812 (patch) | |
tree | 5dc7bff88d5f2226870507fd7eae7a85e5d0b9a4 /.gitlab-ci.yml | |
parent | fb5fe6b01c0cc200a9264a7085d0714fb06ef0a1 (diff) |
ci: Test Windows also on MSVC toolchains
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3aac823a..92c63f84 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -65,7 +65,7 @@ rust-stable: CARGO_TARGET_DIR: $CI_PROJECT_DIR/../target.$CI_CONCURRENT_ID.rust-stable RUSTFLAGS: -D warnings -A unused-parens -windows: +windows-gnu: tags: - win - win2019 @@ -101,6 +101,32 @@ windows: script: C:/tools/msys64/usr/bin/bash.exe -l -c "bash -x ./.gitlab-ci/test-msys2.sh" after_script: [] +windows-msvc: + tags: + - win + - win2019 + stage: build + # This job takes ~40 minutes to run, let's only execute it manually or for + # scheduled builds, otherwise this will stall MRs often not related to Windows + only: + - /windows/i # refs containing 'windows' keyword + - tags + - web + - scheduled + before_script: + - $env:USERNAME + - $env:USERPROFILE + # Install Rust 1.40 + - $env:CARGO_HOME = "$env:ProgramFiles\cargo" + - $env:RUSTUP_HOME = "$env:ProgramFiles\rustup" + - Invoke-WebRequest https://win.rustup.rs -OutFile rustup-init.exe + - .\rustup-init.exe -y --default-toolchain 1.40.0 --default-host x86_64-pc-windows-msvc --profile minimal + - $env:Path += ";$env:ProgramFiles\cargo\bin" + - rustup --version + - rustc --version --verbose + script: cargo test -p sequoia-openpgp + after_script: [] + variables: DEBIAN_FRONTEND: noninteractive CARGO_HOME: $CI_PROJECT_DIR/../cargo |