Feature: Initial WASM Web Runtime #51
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 | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
# Separate build job for Rust (will run in parallel) | |
build-rust: | |
runs-on: ubuntu-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 Rust | |
run: npm run build-rust | |
- name: Test Rust | |
run: npm run test-rust | |
# Separate build job for JavaScript | |
build-javascript: | |
runs-on: ubuntu-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: Build JS | |
run: npm run build-js | |
- name: Test JS | |
run: npm run test-js-node |