Skip to content

JSTPRV-166 conformance harness #1294

JSTPRV-166 conformance harness

JSTPRV-166 conformance harness #1294

name: Rust Tests
on:
push:
branches: [ "main" ]
paths-ignore:
- "**/*.md"
- "docs/**"
- "LICENSE"
- ".gitignore"
pull_request:
branches: [ "main" ]
paths-ignore:
- "**/*.md"
- "docs/**"
- "LICENSE"
- ".gitignore"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
rust-tests:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@efa25f7f19611383d5b0ccf2d1c8914531636bf9 # master
with:
toolchain: nightly-2025-06-20
- name: Install system dependencies
run: |
sudo apt-get update && sudo apt-get install -y \
pkg-config \
libclang-dev \
clang \
protobuf-compiler
- name: Cache Rust dependencies
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
rust/jstprove_remainder/target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Run workspace tests
run: >
cargo test
-p jstprove_circuits
-p jstprove-io
-p jstprove-onnx
--lib --tests --bins
- name: Run remainder unit tests
run: cargo test --manifest-path rust/jstprove_remainder/Cargo.toml --lib