Skip to content

Add cmd/wasm build and GitHub Pages demo with mini editor (#13) #19

Add cmd/wasm build and GitHub Pages demo with mini editor (#13)

Add cmd/wasm build and GitHub Pages demo with mini editor (#13) #19

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
- name: Build
run: go build -v ./cmd/zplgfa
- name: Build WebAssembly
run: GOOS=js GOARCH=wasm go build -v -o /tmp/zplgfa.wasm ./cmd/wasm
- name: Test
run: go test -v ./...