-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (65 loc) · 2 KB
/
rust.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
64
65
66
67
68
69
name: Rust
on:
workflow_dispatch:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
CARGO_NET_GIT_FETCH_WITH_CLI: true
jobs:
build:
runs-on:
- nscloud-ubuntu-20.04-amd64-8x32-with-cache
- nscloud-cache-tag-sov-rollup-starter-build
- nscloud-cache-size-100gb
steps:
- name: TOKEN
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: echo "$GITHUB_TOKEN"
- uses: webfactory/[email protected]
with:
ssh-private-key: |
${{ secrets.SDK_WIP_ACCESS_TOKEN }}
- uses: actions/checkout@v3
- name: Install Protoc
uses: arduino/setup-protoc@v2
with:
version: "23.2"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install cargo-risczero
uses: taiki-e/install-action@v2
with:
tool: [email protected]
- uses: taiki-e/install-action@nextest
- name: Install risc0-zkvm toolchain # Use the risc0 cargo extension to install the risc0 std library for the current toolchain
shell: bash
run: make install-risc0-toolchain
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install SP1 toolchain
shell: bash
env:
SHELL: /bin/bash
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make install-sp1-toolchain
- uses: namespacelabs/nscloud-cache-action@v1
with:
cache: rust
- uses: taiki-e/install-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tool: zepter@1
- name: Check
run: make lint
- name: Run tests
env:
SP1_PROVER: "mock"
run: cargo nextest run
- name: Compile celestia rollup node with sp1 feature
run: cargo build --bin node --no-default-features --features celestia_da --features sp1
- name: Run README.md
run: chmod +x sov-rollup-starter.sh && ./sov-rollup-starter.sh