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
|
components: rustfmt, clippy
|
||||||
|
|
||||||
- name: Install wasm-pack
|
- name: Install wasm-pack
|
||||||
run: |
|
uses: jetli/wasm-pack-action@v0.3.0
|
||||||
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
with:
|
||||||
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
version: "latest"
|
||||||
env:
|
path: "."
|
||||||
PATH: ${{ env.PATH }}:$HOME/.cargo/bin
|
|
||||||
|
|
||||||
- name: Setup SSH for git clone
|
- name: Setup SSH for git clone
|
||||||
run: |
|
run: |
|
||||||
@ -48,25 +47,13 @@ jobs:
|
|||||||
git clone -b dev https://git.4nkweb.com/4nk/sdk_client.git ../sdk_client
|
git clone -b dev https://git.4nkweb.com/4nk/sdk_client.git ../sdk_client
|
||||||
|
|
||||||
- name: Build WebAssembly
|
- name: Build WebAssembly
|
||||||
run: |
|
run: npm run build_wasm
|
||||||
source $HOME/.cargo/env
|
|
||||||
npm run build_wasm
|
|
||||||
env:
|
|
||||||
PATH: ${{ env.PATH }}:$HOME/.cargo/bin
|
|
||||||
|
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: |
|
run: npm run build
|
||||||
source $HOME/.cargo/env
|
|
||||||
npm run build
|
|
||||||
env:
|
|
||||||
PATH: ${{ env.PATH }}:$HOME/.cargo/bin
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: npx vitest run
|
||||||
source $HOME/.cargo/env
|
|
||||||
npx vitest run
|
|
||||||
env:
|
|
||||||
PATH: ${{ env.PATH }}:$HOME/.cargo/bin
|
|
||||||
|
|
||||||
- name: Docker login (git.4nkweb.com)
|
- name: Docker login (git.4nkweb.com)
|
||||||
shell: bash
|
shell: bash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user