-
Notifications
You must be signed in to change notification settings - Fork 95
81 lines (73 loc) · 2.36 KB
/
guest-lib-tests.yml
File metadata and controls
81 lines (73 loc) · 2.36 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Guest Library Tests
on:
push:
branches: ["main"]
pull_request:
branches: ["**"]
paths:
- "crates/circuits/**"
- "crates/vm/**"
- "crates/toolchain/**"
- "extensions/**"
- "guest-libs/**"
- "Cargo.toml"
- ".github/workflows/guest-lib-tests.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
OPENVM_FAST_TEST: "1"
jobs:
integration-tests:
strategy:
matrix:
crate:
- { name: "sha2", path: "sha2" }
- { name: "keccak256", path: "keccak256" }
- { name: "ff_derive", path: "ff_derive" }
- { name: "k256", path: "k256" }
- { name: "p256", path: "p256" }
- { name: "ruint", path: "ruint" }
- { name: "pairing", path: "pairing" }
- { name: "verify_stark", path: "verify_stark" }
# Ensure tests run in parallel even if one fails
fail-fast: false
runs-on:
- runs-on=${{ github.run_id }}
- runner=64cpu-linux-arm64
- image=ubuntu24-full-arm64
- tag=crate-${{ matrix.crate.name }}
- extras=s3-cache
steps:
- uses: runs-on/action@v1
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
- "crates/circuits/**"
- "crates/vm/**"
- "crates/toolchain/**"
- "extensions/**"
- "guest-libs/${{ matrix.crate.path }}/**"
- ".github/workflows/guest-lib-tests.yml"
- name: Skip if no changes
if: steps.filter.outputs.matched == 'false'
run: |
echo "No relevant changes, skipping tests."
exit 0
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- uses: taiki-e/install-action@nextest
- name: Run ${{ matrix.crate.name }} guest library tests
working-directory: guest-libs/${{ matrix.crate.path }}
run: |
rustup component add rust-src --toolchain nightly-2025-02-14
FEATURE_ARGS=""
if [[ "${{ matrix.crate.name }}" == "pairing" ]]; then
FEATURE_ARGS="--features=bn254,bls12_381"
fi
cargo nextest run --cargo-profile=fast $FEATURE_ARGS --no-tests=pass