Skip to content

Commit e63ba35

Browse files
committed
add github action integration
Signed-off-by: Jun Kimura <jun.kimura@datachain.jp>
1 parent 5974e6e commit e63ba35

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-24.04
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions-rust-lang/setup-rust-toolchain@v1
15+
- uses: Swatinem/rust-cache@v2
16+
- run: cargo test
17+
- run: cargo test --manifest-path=./zkvm/risc0/Cargo.toml -- --nocapture
18+
19+
reproducible-build:
20+
runs-on: ubuntu-24.04
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: actions-rust-lang/setup-rust-toolchain@v1
24+
- uses: Swatinem/rust-cache@v2
25+
- name: Install rzup
26+
run: |
27+
curl -L https://risczero.com/install | bash
28+
echo "$HOME/.risc0/bin" >> $GITHUB_PATH
29+
- name: Install RISC Zero toolchain
30+
run: rzup install rust && rzup install cargo-risczero v1.2.2
31+
- run: . "/home/runner/.bashrc" && ZKDCAP_RISC0_BUILD=1 cargo build -r --manifest-path=./zkvm/risc0/Cargo.toml
32+
- run: git diff --exit-code

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# zkDCAP
22

3+
[![test](https://github.com/datachainlab/zkdcap/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/datachainlab/zkdcap/actions/workflows/test.yml)
4+
35
zkDCAP is a Rust library for verifying the ECDSA Quote generated by Intel SGX Data Center Attestation Primitives (DCAP). It also integrates with the RISC Zero zkVM, enabling cost-effective verification on Ethereum and other EVM-based blockchains.

0 commit comments

Comments
 (0)