mirror of
https://github.com/redstrate/Kawari.git
synced 2025-07-13 09:07:44 +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:
parent
781fea1e35
commit
8e3e18812b
1 changed files with 22 additions and 0 deletions
22
.github/workflows/main.yml
vendored
22
.github/workflows/main.yml
vendored
|
@ -10,6 +10,28 @@ env:
|
|||
CARGO_TERM_COLOR: always
|
||||
|
||||
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:
|
||||
name: "Build"
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
|
Loading…
Add table
Reference in a new issue