Skip to content

Commit c407035

Browse files
Create a reusable workflow for installation of all the toolchains.
1 parent 66579bd commit c407035

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/toolchains.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Install toolchains
2+
3+
#on:
4+
# workflow_call:
5+
6+
on:
7+
pull_request:
8+
merge_group:
9+
push:
10+
branches: [main]
11+
12+
jobs:
13+
install-toolchains:
14+
permissions:
15+
# Needed to install the toolchain.
16+
contents: write
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Set up Clang
21+
uses: egor-tensin/setup-clang@v1
22+
with:
23+
version: latest
24+
platform: x64
25+
26+
- name: Install SP1 Toolchain
27+
run: |
28+
curl -fsSL --proto '=https' --tlsv1.2 https://sp1.succinct.xyz | bash && ~/.sp1/bin/sp1up
29+
export PATH=~/.sp1/bin:$PATH
30+
cargo prove --version
31+
32+
- name: Install RISC0 Toolchain
33+
run: |
34+
curl -fsSL --proto '=https' --tlsv1.2 https://risczero.com/install | bash && ~/.sp1/bin/rzup install
35+
export PATH=~/.risc0/bin:$PATH
36+
cargo risczero --version

0 commit comments

Comments
 (0)