1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-07-13 17:07:45 +00:00

Build WebAssembly target on the CI

We depend on this downstream in Packet Analyzer, so we need to
ensure this doesn't break.
This commit is contained in:
Joshua Goins 2025-07-12 07:33:12 -04:00
parent 781fea1e35
commit 8e3e18812b

View file

@ -10,6 +10,28 @@ env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
jobs: jobs:
build-webassembly:
name: "Build (WebAssembly)"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Add WebAssembly Target
run: |
rustup target add wasm32-unknown-unknown
- uses: actions/cache@v4
id: cache-deps
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build
run: cargo build --release --verbose --target=wasm32-unknown-unknown --lib
build: build:
name: "Build" name: "Build"
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}