fix: Utilisation d'une action GitHub pour wasm-pack
Some checks failed
build-and-push-ext / build_push (push) Failing after 44s

- 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
This commit is contained in:
4NK Dev 2025-09-20 23:25:16 +00:00
parent 5b0fa00aad
commit ed265264d1

View File

@ -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