ci: docker_tag=ext - Fix CI workflow to verify WASM files instead of building them
All checks were successful
Build and Push Docker image (ext) / docker (push) Successful in 2m11s
All checks were successful
Build and Push Docker image (ext) / docker (push) Successful in 2m11s
This commit is contained in:
parent
9db61039c6
commit
1542f0fe98
@ -37,16 +37,14 @@ jobs:
|
|||||||
ssh-private-key: |
|
ssh-private-key: |
|
||||||
${{ secrets.SSH_PRIVATE_KEY }}
|
${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
|
||||||
- name: Build WebAssembly
|
- name: Verify WebAssembly files
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
# Install Rust and wasm-pack
|
# Verify that the pre-built WASM files are present
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
echo "Verifying WebAssembly files..."
|
||||||
source ~/.cargo/env
|
ls -la pkg/
|
||||||
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
file pkg/sdk_client_bg.wasm
|
||||||
|
echo "WebAssembly files verified successfully"
|
||||||
# Build the WebAssembly package
|
|
||||||
npm run build_wasm
|
|
||||||
|
|
||||||
- name: Extract docker tag from commit message (optional)
|
- name: Extract docker tag from commit message (optional)
|
||||||
id: tag
|
id: tag
|
||||||
|
Loading…
x
Reference in New Issue
Block a user