From 6804dd4363b4368113750b2f29814f231ec24375 Mon Sep 17 00:00:00 2001 From: Ashwin Naren Date: Sun, 2 Mar 2025 19:26:29 -0800 Subject: [PATCH] use rust-toolchain targets options instead of using rustup --- .github/workflows/release.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0d4b3a270..98b7de482 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -89,10 +89,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - - - name: Set up Environment - shell: bash - run: rustup target add wasm32-wasip1 + with: + targets: wasm32-wasip1 - name: Build RustPython run: cargo build --target wasm32-wasip1 --no-default-features --features freeze-stdlib,stdlib --release @@ -112,7 +110,6 @@ jobs: - uses: mwilliamson/setup-wabt-action@v3 with: { wabt-version: "1.0.30" } - name: build notebook demo - if: github.ref == 'refs/heads/release' run: | npm install npm run dist