-
Notifications
You must be signed in to change notification settings - Fork 56
62 lines (54 loc) · 1.94 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: CI tests
on:
merge_group:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: [main]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
linux:
runs-on: buildjet-16vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
with:
repository: lurk-lab/ci-workflows
- uses: ./.github/actions/ci-env
- uses: ./.github/actions/install-deps
with:
packages: 'pkg-config libssl-dev protobuf-compiler libprotobuf-dev'
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@nextest
- uses: Swatinem/rust-cache@v2
- name: Linux Tests
run: |
cargo nextest run --profile ci --workspace --cargo-profile dev-ci
- name: Linux Gadget Tests w/o debug assertions
run: |
cargo nextest run --profile ci --workspace --cargo-profile dev-no-assertions -E 'test(circuit::gadgets)'
# Rustfmt, clippy, doctests
code-quality:
uses: lurk-lab/ci-workflows/.github/workflows/lints.yml@main
with:
packages: 'protobuf-compiler libprotobuf-dev'
# Checks `cargo build --target wasm32-unknown-unknown`
wasm:
uses: lurk-lab/ci-workflows/.github/workflows/wasm.yml@main
# Checks MSRV specified by `rust-version` in `Cargo.toml`
msrv:
uses: lurk-lab/ci-workflows/.github/workflows/msrv.yml@main
with:
packages: 'protobuf-compiler libprotobuf-dev'
# 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/lurk-rs/blob/main/deny.toml
licenses-audits:
uses: lurk-lab/ci-workflows/.github/workflows/licenses-audits.yml@main