This repository has been archived by the owner on Mar 12, 2024. It is now read-only.
Support to register object to activity #360
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
name: Cargo Build & Test | |
on: | |
push: | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_and_test: | |
name: Res Peer - latest | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: | |
- stable | |
- beta | |
- nightly | |
steps: | |
- uses: actions/checkout@v3 | |
- run: rustup target add wasm32-unknown-unknown | |
- run: rustup toolchain install nightly --allow-downgrade -c rustfmt | |
- run: rustup component add rustfmt | |
- run: rustup component add rustfmt --toolchain nightly | |
- run: git clone https://github.com/linera-io/linera-protocol.git ../linera-protocol | |
- run: cd ../linera-protocol; git checkout v0.6.0 | |
- run: cd ../linera-protocol; cargo build -p linera-sdk --bin linera-wasm-test-runner --release | |
- run: cargo build --verbose | |
- run: mkdir -p target/release | |
- run: cp -v ../linera-protocol/target/release/linera-wasm-test-runner target/release | |
- run: cargo test --verbose --target wasm32-unknown-unknown | |
- run: cargo fmt --all -- --check |