Fix: combinar install dioxus-cli + dx build en un solo paso
Build & Deploy NutriApp / build-and-deploy (push) Failing after 3m25s
Build & Deploy NutriApp / build-and-deploy (push) Failing after 3m25s
This commit is contained in:
@@ -29,20 +29,18 @@ jobs:
|
|||||||
target
|
target
|
||||||
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
|
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
- name: Install wasm-pack + dioxus-cli
|
- name: Install wasm-pack + dioxus-cli + Build Frontend
|
||||||
run: |
|
run: |
|
||||||
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
||||||
cargo install dioxus-cli --version 0.6.3 2>/dev/null || echo "dioxus-cli already installed"
|
cargo install dioxus-cli --version 0.6.3 2>/dev/null || true
|
||||||
|
export PATH="$HOME/.cargo/bin:/usr/local/cargo/bin:$PATH"
|
||||||
|
which dx && dx --version
|
||||||
|
cd frontend
|
||||||
|
dx build --release
|
||||||
|
|
||||||
- name: Build Backend (Rust)
|
- name: Build Backend (Rust)
|
||||||
run: cargo build --release -p nutriapp-backend
|
run: cargo build --release -p nutriapp-backend
|
||||||
|
|
||||||
- name: Build Frontend (Dioxus → WASM)
|
|
||||||
run: |
|
|
||||||
export PATH="$HOME/.cargo/bin:$PATH"
|
|
||||||
cd frontend
|
|
||||||
dx build --release
|
|
||||||
|
|
||||||
- name: Build & Push Docker image
|
- name: Build & Push Docker image
|
||||||
env:
|
env:
|
||||||
REGISTRY: k3s.proyectosjoel.com
|
REGISTRY: k3s.proyectosjoel.com
|
||||||
|
|||||||
Reference in New Issue
Block a user