fix: Utilisation d'une action GitHub pour wasm-pack
Some checks failed
build-and-push-ext / build_push (push) Failing after 44s
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:
parent
5b0fa00aad
commit
ed265264d1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user