mirror of
https://github.com/logos-storage/circom-compat.git
synced 2026-01-02 21:13:11 +00:00
Co-authored-by: jakehemmerle <jakehemmerle@protonmail.com> Co-authored-by: Carlos Pérez <37264926+CPerezz@users.noreply.github.com>
68 lines
1.6 KiB
YAML
68 lines
1.6 KiB
YAML
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
name: Tests
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v2
|
|
- name: Install stable toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
override: true
|
|
|
|
# Install for Anvil
|
|
- name: Install Foundry
|
|
uses: foundry-rs/foundry-toolchain@v1
|
|
with:
|
|
version: nightly
|
|
|
|
- uses: Swatinem/rust-cache@v1
|
|
with:
|
|
cache-on-failure: true
|
|
|
|
- name: cargo test
|
|
run: |
|
|
export PATH=$HOME/bin:$PATH
|
|
cargo test
|
|
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v2
|
|
- name: Install stable toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
override: true
|
|
components: rustfmt, clippy
|
|
- name: cargo fmt
|
|
run: cargo fmt --all -- --check
|
|
- name: cargo clippy
|
|
run: cargo clippy -- -D warnings
|
|
|
|
wasm32-wasip1-check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v2
|
|
- name: Install stable toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
override: true
|
|
target: wasm32-wasip1
|
|
- name: Check wasm32-wasip compilation
|
|
run: cargo check --target wasm32-wasip1 --no-default-features --features="wasm"
|