Skip to content

Add target for asm

Add target for asm #18

Workflow file for this run

name: CI
on:
merge_group:
push:
branches: [ main ]
pull_request:
branches: [ '**' ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
RUST_VERSION: 1.78.0
jobs:
compile:
name: Compile
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Rustup toolchain install
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_VERSION }}
- name: Run cargo check
run: cargo check --workspace --all-features --all-targets
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_VERSION }}
components: rustfmt, clippy
- name: Run cargo fmt
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --workspace --all-features --benches --examples --tests -- -D warnings
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_VERSION }}
components: clippy
- name: Install testing tools
uses: taiki-e/install-action@v2
with:
tool: cargo-nextest
- name: Download zksolc compiler
run: curl -L https://github.com/matter-labs/era-compiler-solidity/releases/download/1.5.0/zksolc-linux-amd64-musl-v1.5.0 --output zksolc && chmod +x zksolc && sudo mv zksolc /usr/bin/zksolc
- name: Compile test programs
run: make compile-programs && ./move_artifacts.sh
- name: Run tests
run: cargo nextest run --workspace --all-features --no-capture