chore!(v0): update v0 for the upcoming ckb 2023 hardfork #4576
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: Rust | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust components | |
run: rustup component add rustfmt && rustup component add clippy | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} | |
- name: Install moleculec v0.7.2 | |
run: CARGO_TARGET_DIR=target/ cargo install moleculec --locked --version 0.7.2 | |
- name: Check format | |
run: cargo fmt -- --check | |
- name: Cargo clippy check | |
env: | |
RUSTFLAGS: -D warnings | |
run: cargo clippy | |
- name: Copy contracts from prebuild docker images | |
run: devtools/fetch-binaries.sh | |
- name: Tests | |
run: RUST_BACKTRACE=1 cargo test --all-targets | |
- name: Test TOML serialization | |
run: cargo run --bin godwoken -- generate-example-config -o test.toml |