Skip to content

Commit 19a28c6

Browse files
Use toolchains.yml in lints.
1 parent 02548a9 commit 19a28c6

File tree

3 files changed

+31
-38
lines changed

3 files changed

+31
-38
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# A helper reusable workflow to install all the toolchains.
2+
3+
name: Install toolchains
4+
description: "Helper to install ZKVM toolchains."
5+
6+
runs:
7+
using: "composite"
8+
steps:
9+
- name: Set up Clang
10+
uses: egor-tensin/setup-clang@v1
11+
with:
12+
version: latest
13+
platform: x64
14+
15+
- name: Install SP1 Toolchain
16+
run: |
17+
curl -fsSL --proto '=https' --tlsv1.2 https://sp1.succinct.xyz | bash && ~/.sp1/bin/sp1up
18+
export PATH=~/.sp1/bin:$PATH
19+
cargo prove --version
20+
21+
- name: Install RISC0 Toolchain
22+
run: |
23+
curl -fsSL --proto '=https' --tlsv1.2 https://risczero.com/install | bash && ~/.risc0/bin/rzup install
24+
export PATH=~/.risc0/bin:$PATH
25+
cargo risczero --version

.github/workflows/lint.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
- uses: actions/checkout@v4
1919
with:
2020
persist-credentials: false
21+
- name: Install toolchains
22+
uses: .github/actions/toolchains
2123
- uses: dtolnay/rust-toolchain@clippy
2224
- uses: Swatinem/rust-cache@v2
2325
with:
@@ -34,9 +36,11 @@ jobs:
3436
- uses: actions/checkout@v4
3537
with:
3638
persist-credentials: false
37-
39+
3840
- name: Cleanup space
39-
uses: ./.github/actions/cleanup # zizmor: ignore[unpinned-uses]
41+
uses: .github/actions/cleanup # zizmor: ignore[unpinned-uses]
42+
- name: Install toolchains
43+
uses: .github/actions/toolchains
4044

4145
- uses: dtolnay/rust-toolchain@nightly
4246
with:

.github/workflows/toolchains.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)