Skip to content

Commit

Permalink
Test libwasmvm on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Jan 9, 2023
1 parent 8b50ef7 commit ef5b5a0
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,45 @@ jobs:
- libwasmvm/target/release/deps
key: cargocache-v3-libwasmvm_sanity-rust:1.60.0-{{ checksum "libwasmvm/Cargo.lock" }}

# This performs all the Rust debug builds on Windows. Similar to libwasmvm_sanity
# but avoids duplicating things that are not platform dependent.
libwasmvm_sanity_windows:
executor:
name: win/default
shell: bash.exe
steps:
- checkout
- run:
name: Reset git config set by CircleCI to make Cargo work
command: git config --global --unset url.ssh://[email protected]
- show_cpu_info
- run:
name: Install Rust
command: |
set -o errexit
curl -sS --output rustup-init.exe https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe
./rustup-init.exe --no-modify-path --profile minimal --default-toolchain 1.60.0 -y
echo 'export PATH="$PATH;$USERPROFILE/.cargo/bin"' >> "$BASH_ENV"
- run:
name: Show Rust version information
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cachev4-libwasmvm_sanity_windows-rust:1.60.0-{{ checksum "libwasmvm/Cargo.lock" }}
- cachev4-libwasmvm_sanity_windows-rust:1.60.0-
- run:
name: Run unit tests
working_directory: libwasmvm
command: cargo test
- save_cache:
paths:
# ".." is the easiest way to get $HOME here (pwd is $HOME\project)
- ../.cargo/registry
- libwasmvm/target/debug/.fingerprint
- libwasmvm/target/debug/build
- libwasmvm/target/debug/deps
key: cachev4-libwasmvm_sanity_windows-rust:1.60.0-{{ checksum "libwasmvm/Cargo.lock" }}

libwasmvm_audit:
docker:
# The audit tool might use a more modern Rust version than the build jobs. See
Expand Down Expand Up @@ -327,6 +366,7 @@ workflows:
build_and_test:
jobs:
- libwasmvm_sanity
- libwasmvm_sanity_windows
- libwasmvm_audit
- format-go
- wasmvm_no_cgo
Expand Down

0 comments on commit ef5b5a0

Please sign in to comment.