diff options
author | Igor Matuszewski <igor@sequoia-pgp.org> | 2020-07-13 12:30:46 +0200 |
---|---|---|
committer | Igor Matuszewski <igor@sequoia-pgp.org> | 2020-08-13 15:19:58 +0200 |
commit | 1c7a670d6e8eb55130b5c04d0e5625ddfc09a057 (patch) | |
tree | 7633a5bcb1bd4ca86ff077d03f94d2b4b60c2b3f /.gitlab-ci.yml | |
parent | fe5eea63668dd8d1604bc39ef38484330a8a9812 (diff) |
ci: Install VS 2019 C++ Build Tools
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 92c63f84..2f4f70c0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -116,16 +116,34 @@ windows-msvc: before_script: - $env:USERNAME - $env:USERPROFILE + # Install VS 2019 VC++ Build Tools (Required for Rust on Windows) + - Get-Date + - Invoke-WebRequest https://aka.ms/vs/16/release/vs_buildtools.exe -OutFile vs_buildtools.exe + # Wait until the VC++ Build Tools installation is completed. + # See https://github.com/MicrosoftDocs/visualstudio-docs/issues/970 + - > + $exitCode = Start-Process + -FilePath vs_buildtools.exe + -ArgumentList "--norestart", "--quiet", "--nocache", "--add", "Microsoft.VisualStudio.Workload.VCTools", "--includeRecommended", "--wait" + -Wait + -PassThru # Install Rust 1.40 + - Get-Date - $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" + - Get-Date - rustup --version - rustc --version --verbose - script: cargo test -p sequoia-openpgp + script: + - cd openpgp + # https://github.com/rust-lang/cargo/issues/5015 + - cargo test --no-default-features --features compression,crypto-cng after_script: [] + variables: + CFLAGS: '' # Silence some C warnings when compiling with MSVC variables: DEBIAN_FRONTEND: noninteractive |