Skip to content

Commit 4ce02e3

Browse files
committed
Test libwasmvm on Windows
1 parent 8b50ef7 commit 4ce02e3

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.circleci/config.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,44 @@ jobs:
6565
- libwasmvm/target/release/deps
6666
key: cargocache-v3-libwasmvm_sanity-rust:1.60.0-{{ checksum "libwasmvm/Cargo.lock" }}
6767

68+
# This performs all the Rust debug builds on Windows. Similar to libwasmvm_sanity
69+
# but avoids duplicating things that are not platform dependent.
70+
libwasmvm_sanity_windows:
71+
executor:
72+
name: win/default
73+
shell: bash.exe
74+
steps:
75+
- checkout
76+
- run:
77+
name: Reset git config set by CircleCI to make Cargo work
78+
command: git config --global --unset url.ssh://[email protected]
79+
- run:
80+
name: Install Rust
81+
command: |
82+
set -o errexit
83+
curl -sS --output rustup-init.exe https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe
84+
./rustup-init.exe --no-modify-path --profile minimal --default-toolchain 1.60.0 -y
85+
echo 'export PATH="$PATH;$USERPROFILE/.cargo/bin"' >> "$BASH_ENV"
86+
- run:
87+
name: Show Rust version information
88+
command: rustc --version; cargo --version; rustup --version
89+
- restore_cache:
90+
keys:
91+
- cachev4-libwasmvm_sanity_windows-rust:1.60.0-{{ checksum "libwasmvm/Cargo.lock" }}
92+
- cachev4-libwasmvm_sanity_windows-rust:1.60.0-
93+
- run:
94+
name: Run unit tests
95+
working_directory: libwasmvm
96+
command: cargo test
97+
- save_cache:
98+
paths:
99+
# ".." is the easiest way to get $HOME here (pwd is $HOME\project)
100+
- ../.cargo/registry
101+
- libwasmvm/target/debug/.fingerprint
102+
- libwasmvm/target/debug/build
103+
- libwasmvm/target/debug/deps
104+
key: cachev4-libwasmvm_sanity_windows-rust:1.60.0-{{ checksum "libwasmvm/Cargo.lock" }}
105+
68106
libwasmvm_audit:
69107
docker:
70108
# The audit tool might use a more modern Rust version than the build jobs. See
@@ -327,6 +365,7 @@ workflows:
327365
build_and_test:
328366
jobs:
329367
- libwasmvm_sanity
368+
- libwasmvm_sanity_windows
330369
- libwasmvm_audit
331370
- format-go
332371
- wasmvm_no_cgo

0 commit comments

Comments
 (0)