-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (37 loc) · 1.29 KB
/
test.yml
File metadata and controls
41 lines (37 loc) · 1.29 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
name: test
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: Swatinem/rust-cache@v2
- run: cargo test
- run: cargo test --manifest-path=./zkvm/risc0/Cargo.toml -- --nocapture
- run: cargo fmt --all --check && cargo clippy --locked --tests -- -D warnings
- run: cargo fmt --all --check && cargo clippy --locked --tests -- -D warnings
working-directory: zkvm/risc0
reproducible-build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: Swatinem/rust-cache@v2
- name: Install rzup
run: |
curl -L https://risczero.com/install | bash
echo "$HOME/.risc0/bin" >> $GITHUB_PATH
- name: Install RISC Zero toolchain
run: rzup install rust && rzup install cargo-risczero 1.2.4
- run: . "/home/runner/.bashrc" && ZKDCAP_RISC0_BUILD=1 cargo build -r --manifest-path=./zkvm/risc0/Cargo.toml
- run: git diff --exit-code
test-i686:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: docker run -v .:/root/zkdcap -w /root/zkdcap -t i386/rust:1.84 cargo test