refactor(wasm): Make warnings an error on CI #160
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build WebAssembly | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
build-wasm: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: "8.0.x" | |
- name: Restore tools | |
run: dotnet tool restore | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
- name: Setup Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Build wasm | |
run: cargo build --features=strict --target=wasm32-unknown-unknown | |
- name: Install wasm-pack | |
run: npm install -g wasm-pack | |
- name: Build F# | |
run: npm run build:examples:hello:rust | |
- name: Build runtime wasm bundle | |
run: wasm-pack build --target web | |
working-directory: runtime/functor-runtime-web | |
- name: Build hello wasm bundle | |
run: wasm-pack build --target web | |
working-directory: examples/hello/build-wasm |