mirror of
https://github.com/codex-storage/codex-storage-proofs.git
synced 2025-01-23 17:19:36 +00:00
ebef300064
* wip rust ffi * proper test component instantiation * adding quick&dirty poseidon implementation * update gitignode * gitignore * adding rust circuit tests * gitignore * rename * add storer tests * move utils under circuit_tests * fix storage proofs * wip: ffi * instantiate storer * enable ark-serialize * delete js tests * update CI to run cargo tests * keep the artifacts dir * update .gitignore * build circuits * remove package json * place built circuits in correct dirs * update gitignore * remove node * fix ci * updating readme * storageproofs.rs to storage_proofs.rs * flatten tests chunks by default * add ffi * fix digest * minor fixes for ffi * fix storer test * use random data for chunks * debug optimizations to speed witness generation * clippy & other lint stuff * add back missing unsafe blocks * release mode disables constraint checks * fix ffi * fix hashes serialization * make naming more consistent * add missing pragma * use correct circuits * add todo * add clarification to readme * silence unused warning * include constants file into exec * remove unused imports
35 lines
925 B
YAML
35 lines
925 B
YAML
# This workflow runs the tests for the circuits.
|
|
name: Test
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
cache: 'npm'
|
|
- name: Cache circom
|
|
id: cache-circom
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: ~/.cargo/bin/circom
|
|
# Since the version of circom is specified in `scripts/install-circom.sh`,
|
|
# as long as the file doesn't change we can reuse the circom binary.
|
|
key: ${{ runner.os }}-circom-${{ hashFiles('./scripts/install-circom.sh') }}
|
|
- name: Install circom if not cached
|
|
run: sh ./scripts/install-circom.sh
|
|
- run: npm ci
|
|
- name: Build circuits
|
|
run: sh ./scripts/circuit-prep.sh
|
|
- name: Run the tests
|
|
run: RUST_BACKTRACE=full cargo test
|