This is an automated email from the ASF dual-hosted git repository.

dengliming pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu-wasm.git


The following commit(s) were added to refs/heads/master by this push:
     new 3c1e917  chore(ci): Replace archived actions-rs actions (#15)
3c1e917 is described below

commit 3c1e9170260aea1b8b2cdde9bf23e54fa21f9d00
Author: Jacob Wujciak-Jens <[email protected]>
AuthorDate: Thu Sep 3 04:51:54 2026 +0200

    chore(ci): Replace archived actions-rs actions (#15)
    
    * Replace actions-rs actions
    
    * run on pull_request
    
    * add permissions
---
 .github/workflows/build-wasm.yml | 29 +++++++++++++----------------
 1 file changed, 13 insertions(+), 16 deletions(-)

diff --git a/.github/workflows/build-wasm.yml b/.github/workflows/build-wasm.yml
index df62436..44d1f16 100644
--- a/.github/workflows/build-wasm.yml
+++ b/.github/workflows/build-wasm.yml
@@ -15,7 +15,10 @@
 
 name: build wasm
 
-on: [push]
+on: [push, pull_request]
+
+permissions:
+  contents: read
 
 jobs:
   linux:
@@ -23,11 +26,9 @@ jobs:
     steps:
       - uses: actions/checkout@v2
       - name: Set up rust
-        uses: actions-rs/toolchain@v1
-        with:
-          profile: minimal
-          toolchain: stable
-          override: true
+        run: |
+           rustup toolchain add --profile=minimal stable
+           rustup override set stable
       - name: Build with rust
         run: |
           cd ${{ github.workspace }}/shenyu-wasm-build
@@ -44,11 +45,9 @@ jobs:
     steps:
       - uses: actions/checkout@v2
       - name: Set up rust
-        uses: actions-rs/toolchain@v1
-        with:
-          profile: minimal
-          toolchain: stable
-          override: true
+        run: |
+           rustup toolchain add --profile=minimal stable
+           rustup override set stable
       - name: Build with rust
         run: |
           cd ${{ github.workspace }}/shenyu-wasm-build
@@ -66,11 +65,9 @@ jobs:
       - uses: actions/checkout@v2
         continue-on-error: true
       - name: Set up rust
-        uses: actions-rs/toolchain@v1
-        with:
-          profile: minimal
-          toolchain: stable
-          override: true
+        run: |
+           rustup toolchain add --profile=minimal stable
+           rustup override set stable
       - name: Build with rust
         run: |
           cd ${{ github.workspace }}/shenyu-wasm-build

Reply via email to