Skip to content

Commit

Permalink
Merge pull request #2345 from niklaslong/fix/circleci
Browse files Browse the repository at this point in the history
[Fix] Windows CI
  • Loading branch information
howardwu authored Feb 10, 2024
2 parents f7fef2a + 939c4ab commit bd66f86
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2.1

orbs:
windows: circleci/windows@2.4.0
windows: circleci/windows@5.0

commands:
check_windows:
Expand All @@ -17,11 +17,14 @@ commands:
name: "Install Rust and run cargo check"
command: |
$ProgressPreference = "SilentlyContinue"
# Remove the circleci installed rustc.
choco uninstall rust
# Install rust with rustup.
Invoke-WebRequest -Uri "https://win.rustup.rs/" -OutFile "C:\rustup-init.exe"
& C:\rustup-init.exe -y --default-toolchain "stable-x86_64-pc-windows-msvc" --no-modify-path --profile minimal
$env:Path += ";C:\Users\circleci\.cargo\bin"
rustc -Vv
cargo --version
$Env:Path += ";$Env:USERPROFILE\.cargo\bin"
# Verify the installation.
cargo --version --verbose
rustc --version | Out-File -FilePath "rust-version"
if (!(Test-Path "Cargo.lock" -PathType Leaf)) {
cargo generate-lockfile
Expand Down

0 comments on commit bd66f86

Please sign in to comment.