From 787ecc78fe77b7f2031237ed551877b23eecec38 Mon Sep 17 00:00:00 2001 From: Zach Showalter Date: Mon, 15 Apr 2024 16:21:09 -0400 Subject: [PATCH] Change CI file to fix `wasm32-unknown-unknown` issue Signed-off-by: Zach Showalter --- .github/workflows/ci-casper-client-rs.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-casper-client-rs.yml b/.github/workflows/ci-casper-client-rs.yml index 05bab790..076b4245 100644 --- a/.github/workflows/ci-casper-client-rs.yml +++ b/.github/workflows/ci-casper-client-rs.yml @@ -22,10 +22,16 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + + - name: Get stable from rust-toolchain.toml + id: stable-toolchain + run: echo "::set-output name=version::$(sed -nr 's/channel\s+=\s+\"(.*)\"/\1/p' rust-toolchain.toml)" + + - name: Install Toolchain - Stable + uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af #tag v1.0.7 with: - toolchain: stable profile: minimal + toolchain: ${{ steps.stable-toolchain.outputs.version }} components: rustfmt, clippy target: wasm32-unknown-unknown @@ -73,4 +79,5 @@ jobs: uses: actions-rs/cargo@v1 with: command: build - args: --lib --target wasm32-unknown-unknown --no-default-features + target: wasm32-unknown-unknown + args: --lib --target wasm32-unknown-unknown --no-default-features \ No newline at end of file