From b7abbbe21774a5b6adf9fa6e8c4d55299a9ee708 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Wed, 27 Dec 2023 01:32:47 +0000 Subject: [PATCH] Setup toolchain in separate CI step --- .github/workflows/ci.yml | 8 +++++++- .github/workflows/deploy.yml | 14 ++++++++++++-- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 28431e3..6886872 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,9 +13,15 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Setup nightly Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly-2022-12-12 + target: wasm32-unknown-unknown + profile: minimal + components: rust-src - name: Run tests working-directory: ./test run: | - rustup component add rust-src npm ci npm test diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2a09598..e142337 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,11 +11,21 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Setup stable Rust + uses: actions-rs/toolchain@v1 + with: + target: wasm32-unknown-unknown + profile: minimal + - name: Setup nightly Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly-2022-12-12 + target: wasm32-unknown-unknown + profile: minimal + components: rust-src - name: Build demo working-directory: ./demo run: | - rustup toolchain add nightly-2022-12-12 - rustup component add rust-src --toolchain nightly-2022-12-12 npm ci npm run build - name: Deploy 🚀