Compare commits
2 commits
285543500c
...
f0d541080a
| Author | SHA1 | Date | |
|---|---|---|---|
| f0d541080a | |||
| 167918c0f0 |
1 changed files with 24 additions and 6 deletions
|
|
@ -4,7 +4,7 @@ on: [push, pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
test-backend:
|
test-backend:
|
||||||
runs-on: [ci]
|
runs-on: [ci]
|
||||||
# if: false
|
if: false
|
||||||
|
|
||||||
# Point all steps at the host's rootless Podman socket
|
# Point all steps at the host's rootless Podman socket
|
||||||
env:
|
env:
|
||||||
|
|
@ -128,7 +128,7 @@ jobs:
|
||||||
|
|
||||||
test-frontend:
|
test-frontend:
|
||||||
runs-on: [ci]
|
runs-on: [ci]
|
||||||
# if: false
|
if: false
|
||||||
needs: test-backend
|
needs: test-backend
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -141,7 +141,7 @@ jobs:
|
||||||
build-backend:
|
build-backend:
|
||||||
runs-on: [ci]
|
runs-on: [ci]
|
||||||
# if: false
|
# if: false
|
||||||
needs: [test-backend, test-frontend]
|
# needs: [test-backend, test-frontend]
|
||||||
# needs: [test-frontend]
|
# needs: [test-frontend]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
|
@ -177,7 +177,7 @@ jobs:
|
||||||
build-frontend:
|
build-frontend:
|
||||||
runs-on: [ci]
|
runs-on: [ci]
|
||||||
# if: false
|
# if: false
|
||||||
needs: [test-backend, test-frontend]
|
# needs: [test-backend, test-frontend]
|
||||||
# needs: [test-frontend]
|
# needs: [test-frontend]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
|
@ -208,12 +208,30 @@ jobs:
|
||||||
echo "=== Inode info ==="
|
echo "=== Inode info ==="
|
||||||
df -i /home/ci-service /tmp /var/tmp 2>/dev/null || df -i /tmp /var/tmp
|
df -i /home/ci-service /tmp /var/tmp 2>/dev/null || df -i /tmp /var/tmp
|
||||||
|
|
||||||
- name: Install wasm-pack
|
- name: Install Rust toolchain and wasm-pack
|
||||||
run: |
|
run: |
|
||||||
which wasm-pack || cargo install wasm-pack
|
# Install Rust using rustup
|
||||||
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||||
|
source $HOME/.cargo/env
|
||||||
|
|
||||||
|
# Install wasm32 target
|
||||||
|
rustup target add wasm32-unknown-unknown
|
||||||
|
|
||||||
|
# Configure cargo registry for sharenet-sh-forgejo
|
||||||
|
cat > $HOME/.cargo/config.toml << EOF
|
||||||
|
[registries.sharenet-sh-forgejo]
|
||||||
|
index = "sparse+https://${{ secrets.REGISTRY_HOST }}/api/packages/${{ github.repository }}/cargo/index/"
|
||||||
|
|
||||||
|
[net]
|
||||||
|
git-fetch-with-cli = true
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# Install wasm-pack
|
||||||
|
cargo install wasm-pack
|
||||||
|
|
||||||
- name: Build WASM module
|
- name: Build WASM module
|
||||||
run: |
|
run: |
|
||||||
|
source $HOME/.cargo/env
|
||||||
cd frontend/wasm
|
cd frontend/wasm
|
||||||
wasm-pack build --target web
|
wasm-pack build --target web
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue