Skip to content

Refactor GitHub workflows #2

Refactor GitHub workflows

Refactor GitHub workflows #2

Workflow file for this run

name: Build and Test Nova
on:
merge_group:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- dev
- 'feat/**'
- release-candidate
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@v4
with:
repository: lurk-lab/ci-workflows
- uses: ./.github/actions/ci-env
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@nextest
- uses: Swatinem/rust-cache@v2
- name: Check the minroot example compiles under the abomonate feature
run: cargo check --profile dev-ci --features "abomonate" --examples
- name: Check benches compile under the flamegraph feature
run: cargo check --profile dev-ci --features "flamegraph" --benches
- 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
- name: Run test_pp_digest with the asm feature
run: |
cargo nextest run --profile ci --workspace --cargo-profile dev-ci --features "asm" -E 'test(test_pp_digest)'
check-lurk-compiles:
if: github.event_name == 'pull_request'
runs-on: buildjet-8vcpu-ubuntu-2204
env:
RUSTFLAGS: -D warnings
steps:
- uses: lurk-lab/ci-workflows/.github/workflows/check-lurk-compiles.yml@main
with:
package-name: arecibo
# Wasm build, rustfmt, clippy, doctests, and MSRV
code-quality:
uses: lurk-lab/ci-workflows/.github/workflows/lints.yml@main
# Check documentation links aren't broken
link-checker:
uses: lurk-lab/ci-workflows/.github/workflows/links-check.yml@main
with:
fail-fast: true
# Lint dependencies for licensing and auditing issues as per https://github.com/lurk-lab/arecibo/blob/main/deny.toml
licenses-audits:
uses: lurk-lab/ci-workflows/.github/workflows/licenses-audits.yml@main