Skip to content

Port paranova.

Port paranova. #371

Workflow file for this run

name: Build and Test Nova
on:
merge_group:
push:
branches: [ dev, zeromorph ]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: [ dev, zeromorph ]
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUSTUP_MAX_RETRIES: 10
RUST_BACKTRACE: short
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
runs-on: buildjet-8vcpu-ubuntu-2204
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v2
- name: Setup Rust
uses: actions-rs/toolchain@v1
- uses: taiki-e/install-action@nextest
- uses: Swatinem/rust-cache@v2
- name: Build, with benches & examples
run: cargo build --profile dev-ci --benches --examples
- name: Linux Tests in parallel, with nextest profile ci and cargo profile dev-ci
run: |
cargo nextest run --profile ci --workspace --cargo-profile dev-ci
check-lurk-compiles:
runs-on: buildjet-8vcpu-ubuntu-2204
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v2
with:
path: ${{ github.workspace }}/arecibo
- uses: actions/checkout@v2
with:
repository: lurk-lab/lurk-rs
path: ${{ github.workspace }}/lurk
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Patch Cargo.toml
working-directory: ${{ github.workspace }}/lurk
run: |
echo "[patch.'https://github.com/lurk-lab/arecibo']" >> Cargo.toml
echo "nova = { path='../arecibo', package='nova-snark' }" >> Cargo.toml
- name: Check Lurk-rs types don't break spectacularly
working-directory: ${{ github.workspace }}/lurk
run: cargo check --all --tests --benches --examples
misc:
runs-on: ubuntu-latest
strategy:
fail-fast: false
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- run: rustup target add wasm32-unknown-unknown
- name: Wasm build
run: cargo build --target wasm32-unknown-unknown
- name: Check Rustfmt Code Style
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Check clippy warnings
run: cargo xclippy -D warnings
- name: Doctests
run: cargo test --doc --workspace