Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI job for cosnwasm-vm on Windows #1499

Merged
merged 1 commit into from
Nov 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ version: 2.1

orbs:
codecov: codecov/[email protected]
win: circleci/[email protected]

workflows:
test:
Expand All @@ -15,6 +16,7 @@ workflows:
- package_std
- package_storage
- package_vm
- package_vm_windows
- contract_burner
- contract_crypto_verify
- contract_cyberpunk
Expand Down Expand Up @@ -376,6 +378,49 @@ jobs:
- target/debug/deps
key: cargocache-v2-package_vm-rust:1.59.0-{{ checksum "Cargo.lock" }}

package_vm_windows:
executor:
name: win/default
shell: bash.exe
steps:
- run:
name: Enable symlinks for the checkout
command: git config --global core.symlinks true
- checkout
- run:
name: Reset git config set by CircleCI to make Cargo work
command: git config --global --unset url.ssh://[email protected]
- 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 --default-toolchain 1.65.0 -y
echo 'export PATH="$PATH;$USERPROFILE/.cargo/bin"' >> "$BASH_ENV"
- run:
name: Version information
command: |
set -o errexit
rustc --version; cargo --version; rustup --version; rustup target list --installed
- restore_cache:
keys:
- cargocache-v2-package_vm_windows-rust:1.65.0-{{ checksum "Cargo.lock" }}
- run:
name: Test
working_directory: ~/project/packages/vm
command: cargo test --locked
- run:
name: Test with all features
working_directory: ~/project/packages/vm
command: cargo test --locked --features allow_interface_version_7,iterator,staking,stargate
- save_cache:
paths:
- /usr/local/cargo/registry
- target/debug/.fingerprint
- target/debug/build
- target/debug/deps
key: cargocache-v2-package_vm_windows-rust:1.65.0-{{ checksum "Cargo.lock" }}

contract_burner:
docker:
- image: rust:1.59.0
Expand Down