-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8b50ef7
commit ef5b5a0
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -327,6 +366,7 @@ workflows: | |
build_and_test: | ||
jobs: | ||
- libwasmvm_sanity | ||
- libwasmvm_sanity_windows | ||
- libwasmvm_audit | ||
- format-go | ||
- wasmvm_no_cgo | ||
|