Skip to content

Commit 6c3cddc

Browse files
committed
ci: install zisk toolchain using their steps
1 parent e5d2fe0 commit 6c3cddc

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/build-and-test-rust.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,20 @@ jobs:
4242
source ~/.bashrc
4343
~/.risc0/bin/rzup install
4444
45-
- name: Install zisk toolchain
45+
# Reference: https://github.com/0xPolygonHermez/zisk/blob/b3ca745b80423c8123dc24f19039865a5bc8b074/.github/workflows/test_install_bin.yml#L71-L83
46+
- name: Install ZisK dependencies
47+
shell: bash
4648
run: |
47-
sudo apt-get update
48-
sudo apt-get install -y xz-utils jq curl build-essential qemu-system libomp-dev libgmp-dev nlohmann-json3-dev protobuf-compiler uuid-dev libgrpc++-dev libsecp256k1-dev libsodium-dev libpqxx-dev nasm libopenmpi-dev openmpi-bin openmpi-common libclang-dev clang gcc-riscv64-unknown-elf
49-
curl https://raw.githubusercontent.com/0xPolygonHermez/zisk/main/ziskup/install.sh | bash
50-
source ~/.bashrc
51-
~/.zisk/bin/ziskup install
49+
apt-get install -y xz-utils jq curl build-essential qemu-system libomp-dev \
50+
libgmp-dev nlohmann-json3-dev protobuf-compiler uuid-dev libgrpc++-dev \
51+
libsecp256k1-dev libsodium-dev libpqxx-dev nasm libopenmpi-dev openmpi-bin openmpi-common
52+
53+
- name: Install and run ziskup
54+
run: |
55+
curl -s -o install.sh https://raw.githubusercontent.com/0xPolygonHermez/zisk/main/ziskup/install.sh
56+
chmod +x install.sh
57+
export GH_RUNNER=1
58+
./install.sh
5259
5360
- name: Cache Rust dependencies
5461
uses: actions/cache@v3

0 commit comments

Comments
 (0)