Skip to content

use setup actions

use setup actions #10

Workflow file for this run

name: make build
on:
push:
branches: "main"
paths-ignore:
- .gitignore
- README.md
- LICENSE
- .vscode/**
- .github/**
- "!.github/workflows/make-build.yml"
pull_request:
paths-ignore:
- .gitignore
- README.md
- LICENSE
- .vscode/**
- .github/**
- "!.github/workflows/make-build.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
COMPONENT_WORLD: unicode-math-class
jobs:
make-build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup target add wasm32-unknown-unknown
- uses: jcbhmr/setup-cargo-component@v1
- uses: jcbhmr/setup-wasm-tools@v1
- run: make build
- run: |
wasm-tools component wit \
"target/wasm32-unknown-unknown/debug/$COMPONENT_WORLD.wasm" \
| sed 's/^/ /' >> "$GITHUB_STEP_SUMMARY"
- uses: actions/upload-artifact@v4
with:
name: artifact
path: |
target/wasm32-unknown-unknown/debug/${{ env.COMPONENT_WORLD }}.wasm