Improvements to error handling and naming (#309) #3
Workflow file for this run
This file contains 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: 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 | ||
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)' | ||
<<<<<<< HEAD | ||
check-lurk-compiles: | ||
uses: lurk-lab/ci-workflows/.github/workflows/check-lurk-compiles.yml@main | ||
with: | ||
runner: "buildjet-8vcpu-ubuntu-2204" | ||
||||||| parent of 37871d04 (Miscellaneous improvements (details in commit messages) (#308)) | ||
build-wasm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Wasm build | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: wasm32-unknown-unknown | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --target wasm32-unknown-unknown | ||
======= | ||
build-wasm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Wasm build | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: wasm32-unknown-unknown | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --no-default-features --target wasm32-unknown-unknown | ||
>>>>>>> 37871d04 (Miscellaneous improvements (details in commit messages) (#308)) | ||
# 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 |