From ed265264d1faa55b2761afd745f45ad3e1b11bad Mon Sep 17 00:00:00 2001 From: 4NK Dev Date: Sat, 20 Sep 2025 23:25:16 +0000 Subject: [PATCH] fix: Utilisation d'une action GitHub pour wasm-pack MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remplacement de l'installation manuelle par jetli/wasm-pack-action@v0.3.0 - Simplification des étapes suivantes (plus besoin de source /home/debian/.cargo/env) - Suppression des variables d'environnement PATH redondantes - Installation plus fiable et standardisée de wasm-pack --- .gitea/workflows/build-ext.yml | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/.gitea/workflows/build-ext.yml b/.gitea/workflows/build-ext.yml index 4150f7c..8912259 100644 --- a/.gitea/workflows/build-ext.yml +++ b/.gitea/workflows/build-ext.yml @@ -30,11 +30,10 @@ jobs: components: rustfmt, clippy - name: Install wasm-pack - run: | - curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - echo "$HOME/.cargo/bin" >> $GITHUB_PATH - env: - PATH: ${{ env.PATH }}:$HOME/.cargo/bin + uses: jetli/wasm-pack-action@v0.3.0 + with: + version: "latest" + path: "." - name: Setup SSH for git clone run: | @@ -48,25 +47,13 @@ jobs: git clone -b dev https://git.4nkweb.com/4nk/sdk_client.git ../sdk_client - name: Build WebAssembly - run: | - source $HOME/.cargo/env - npm run build_wasm - env: - PATH: ${{ env.PATH }}:$HOME/.cargo/bin + run: npm run build_wasm - name: Build project - run: | - source $HOME/.cargo/env - npm run build - env: - PATH: ${{ env.PATH }}:$HOME/.cargo/bin + run: npm run build - name: Run tests - run: | - source $HOME/.cargo/env - npx vitest run - env: - PATH: ${{ env.PATH }}:$HOME/.cargo/bin + run: npx vitest run - name: Docker login (git.4nkweb.com) shell: bash