From 36c14652bc6007dc8f6a6df891955055c22739fe Mon Sep 17 00:00:00 2001 From: 4NK Dev Date: Sat, 20 Sep 2025 22:43:03 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20Ajout=20des=20d=C3=A9pendances=20manquan?= =?UTF-8?q?tes=20dans=20la=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Installation de Rust et wasm-pack - Configuration SSH pour cloner sdk_client - Build WebAssembly avant le build TypeScript - Toutes les étapes nécessaires pour reproduire l'environnement local --- .gitea/workflows/build-ext.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.gitea/workflows/build-ext.yml b/.gitea/workflows/build-ext.yml index 1f31f05..ba6edc2 100644 --- a/.gitea/workflows/build-ext.yml +++ b/.gitea/workflows/build-ext.yml @@ -23,6 +23,29 @@ jobs: - name: Install dependencies run: npm ci --include=dev + - name: Setup Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + components: rustfmt, clippy + + - name: Install wasm-pack + run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh + + - name: Setup SSH for git clone + run: | + mkdir -p ~/.ssh + echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keyscan git.4nkweb.com >> ~/.ssh/known_hosts + + - name: Clone sdk_client + run: | + git clone -b dev git@git.4nkweb.com:4nk/sdk_client.git ../sdk_client + + - name: Build WebAssembly + run: npm run build_wasm + - name: Build project run: npm run build