From 10a2e1da22169492ddd7c5a853260f3a041934e1 Mon Sep 17 00:00:00 2001 From: Dimitri Prosper Date: Fri, 25 Oct 2024 16:30:58 -0400 Subject: [PATCH] Update nextjs.yml --- .github/workflows/nextjs.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index ee227f3..5696c88 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -40,6 +40,31 @@ jobs: # working-directory: frontend-wasm # run: | # wasm-pack build --target web + - name: Set up Rust environment + uses: rustup-init/rustup-init-action@v1 + with: + rust-previous-version: '1.82.0' # You can change this to your desired version of Rust + + - name: Install dependencies + run: | + cargo build --release + + - name: Generate WASM binaries + env: + WASM_TARGET: wasm32-unknown-unknown + run: | + cd frontend-wasm + cargo build --target $WASM_TARGET --release + echo "WASM binaries generated" + + - name: Generate WASM binaries + env: + WASM_TARGET: wasm32-unknown-unknown + run: | + cd frontend-wasm + cargo build --target $WASM_TARGET --release + echo "WASM binaries generated" + - name: Detect package manager id: detect-package-manager run: |