Inline consts for more instructions #311
This file contains hidden or 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: PR Check | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-test: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Cache cargo registry | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Install test dependencies | |
run: sudo apt-get update && sudo apt-get install -y wabt | |
- name: Build project | |
run: cargo build --release | |
- name: Install Rust toolchain 1.89.0 (stable) | |
run: | | |
rustup install 1.89.0 | |
rustup +1.89.0 component add clippy | |
rustup +1.89.0 component add rustfmt | |
rustup +1.89.0 component add rust-src | |
- name: Install WebAssembly target | |
run: rustup target add wasm32-unknown-unknown | |
- name: Run tests | |
run: cargo test --release | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install test dependencies | |
run: sudo apt-get update && sudo apt-get install -y wabt | |
- name: Install Rust toolchain 1.89.0 (stable) | |
run: | | |
rustup install 1.89.0 | |
rustup +1.89.0 component add clippy | |
rustup +1.89.0 component add rustfmt | |
rustup +1.89.0 component add rust-src | |
- name: Run Clippy | |
run: cargo clippy --all-targets -- -D warnings | |
fmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Check formatting | |
run: cargo fmt --all -- --check |