feat: update to Archway v9.0.0 #165
Workflow file for this run
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
on: [push, pull_request] | |
name: Check | |
jobs: | |
test: | |
name: Test Suite | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- 1.70.0 | |
- stable | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
fetch-tags: true | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
target: wasm32-unknown-unknown | |
override: true | |
profile: minimal | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v2 | |
- name: Run unit tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --all --locked | |
env: | |
RUST_BACKTRACE: 1 | |
- name: Compile WASM contract | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --release --lib --target wasm32-unknown-unknown --package increment | |
env: | |
RUSTFLAGS: "-C link-arg=-s" | |
lints: | |
name: Lints | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- 1.70.0 | |
- stable | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
fetch-tags: true | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
override: true | |
profile: minimal | |
components: rustfmt, clippy | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run cargo fmt | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
- name: Run cargo clippy | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: -- -D warnings -A clippy::derive_partial_eq_without_eq |