aquavm/.circleci/config.yml

46 lines
1.1 KiB
YAML
Raw Normal View History

version: 2
jobs:
air:
docker:
- image: circleci/rust:latest
resource_class: medium+
environment:
RUST_BACKTRACE: 1
RUST_TEST_THREADS: 1
steps:
- checkout
- restore_cache:
keys:
- air01-{{ checksum "Cargo.lock" }}
- run: |
2022-04-07 00:18:49 +03:00
rustup toolchain install nightly-2022-03-20-x86_64-unknown-linux-gnu
rustup default nightly-2022-03-20-x86_64-unknown-linux-gnu
rustup target add wasm32-wasi
rustup component add rustfmt
rustup component add clippy
2021-05-13 12:00:56 +03:00
cargo install --force marine
2021-02-17 23:36:36 +03:00
# build a Wasm binary for interpreter
2021-05-13 12:00:56 +03:00
(cd air-interpreter; marine build --features marine)
2020-12-22 21:05:04 +03:00
# build Wasm binaries for tests
2022-03-10 16:06:43 +03:00
(cd air/tests/test_module; ./build_test_binaries.sh)
2020-12-22 21:05:04 +03:00
cargo fmt --all -- --check --color always
2020-10-30 20:29:05 +03:00
cargo check
cargo test --release
cargo clippy -v
- save_cache:
paths:
- ~/.cargo
- ~/.rustup
key: air01-{{ checksum "Cargo.lock" }}
workflows:
version: 2
air:
jobs:
- air