From 5b0fa00aad2f1366a00318c2523288a58936f4e5 Mon Sep 17 00:00:00 2001 From: 4NK Dev Date: Sat, 20 Sep 2025 23:22:00 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20Correction=20du=20PATH=20dans=20toutes?= =?UTF-8?q?=20les=20=C3=A9tapes=20de=20la=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Ajout de la variable d'environnement PATH dans chaque étape - Source de l'environnement Rust dans toutes les étapes - Correction du PATH pour wasm-pack dans toutes les étapes - Toutes les étapes ont maintenant accès aux outils Rust --- .gitea/workflows/build-ext.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build-ext.yml b/.gitea/workflows/build-ext.yml index c7a473e..4150f7c 100644 --- a/.gitea/workflows/build-ext.yml +++ b/.gitea/workflows/build-ext.yml @@ -33,6 +33,8 @@ jobs: 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 - name: Setup SSH for git clone run: | @@ -49,12 +51,22 @@ jobs: run: | source $HOME/.cargo/env npm run build_wasm + env: + PATH: ${{ env.PATH }}:$HOME/.cargo/bin - name: Build project - run: npm run build + run: | + source $HOME/.cargo/env + npm run build + env: + PATH: ${{ env.PATH }}:$HOME/.cargo/bin - name: Run tests - run: npx vitest run + run: | + source $HOME/.cargo/env + npx vitest run + env: + PATH: ${{ env.PATH }}:$HOME/.cargo/bin - name: Docker login (git.4nkweb.com) shell: bash