-
Notifications
You must be signed in to change notification settings - Fork 3
63 lines (51 loc) · 1.62 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
63
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
# Step 1: Set up Rust and build with Cargo
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Build with Cargo
run: cargo build --release
# Step 2: Set up Haskell and build with Cabal
- name: Set up Haskell
uses: haskell/actions/setup@v1
with:
ghc-version: '9.2.5'
cabal-version: '3.6.2.0'
- name: Build with Cabal
run: cabal build
# Cache PLONK params download
- name: Cache PLONK params
uses: actions/cache@v3
with:
path: ~/.sp1/circuits/plonk_bn254/v1.0.8-testnet
key: plonk-params-v1.0.8-testnet
- name: Download and untar PLONK params (if not cached)
if: steps.cache-plonk-params.outputs.cache-hit != 'true'
run: |
mkdir -p ~/.sp1/circuits/plonk_bn254/v1.0.8-testnet
wget https://sphinx-plonk-params.s3.amazonaws.com/v1.0.8-testnet.tar.gz -O plonk_params.tar.gz
tar -xzf plonk_params.tar.gz -C ~/.sp1/circuits/plonk_bn254/v1.0.8-testnet
rm plonk_params.tar.gz
# Install and run nextest
- name: Install nextest
uses: taiki-e/install-action@nextest
- name: Run tests with nextest
run: cargo nextest run --release --no-fail-fast
# Run the Haskell test
- name: Run the cabal test
run: cabal run test