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 🚀