From 58ec579347e7b4469c1837b7e2a47589f58a3786 Mon Sep 17 00:00:00 2001 From: Matthew Pomes Date: Wed, 15 Apr 2026 23:47:03 -0500 Subject: [PATCH] Add steps to compile & release to website --- .gitea/workflows/ci.yaml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 147ca8e..4a6ec69 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -11,14 +11,18 @@ jobs: build_and_test: name: Rust project - latest runs-on: rustup-all - strategy: - matrix: - toolchain: - - stable - # - beta - # - nightly steps: - uses: actions/checkout@v4 - # - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - run: cargo build --verbose - run: cargo test --verbose + release: + name: Release + runs-on: rustup-wasm + if: gitea.ref == 'refs/heads/main' + needs: build_and_test + steps: + - uses: actions/checkout@v4 + - run: cargo clean + - run: cargo build --target wasm32-unknown-unknown --bin wasm --features web --release + - run: wasm-bindgen target/wasm32-unknown-unknown/release/wasm.wasm --out-dir wasm --web + - run: cp wasm/* /data/site/nes/