Update github.com/deadsy/sdfx digest to f3e72b4 #48
Workflow file for this run
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 and publish demos | |
on: | |
push: | |
branches: | |
- main | |
pull_request: {} | |
permissions: | |
contents: write # Required to upload artifacts to releases (and pushing the version update) | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
- uses: acifani/setup-tinygo@v2 | |
with: | |
tinygo-version: '0.32.0' | |
- run: mkdir -p public | |
- name: Build sdf-viewer-go/example | |
run: | | |
cd $GITHUB_WORKSPACE/sdf-viewer-go/example | |
tinygo build -o ../../public/sdf-viewer-go.wasm -target wasi -opt 2 -x -no-debug . | |
- name: Build sdf-viewer-go-sdfx/example | |
run: | | |
cd $GITHUB_WORKSPACE/sdf-viewer-go-sdfx/example | |
tinygo build -o ../../public/sdf-viewer-go-sdfx.wasm -target wasi -opt 2 -x -no-debug . | |
- name: Build sdf-viewer-go-sdf/example | |
run: | | |
cd $GITHUB_WORKSPACE/sdf-viewer-go-sdf/example | |
tinygo build -o ../../public/sdf-viewer-go-sdf.wasm -target wasi -opt 2 -x -no-debug . | |
- name: Publish | |
uses: JamesIves/github-pages-deploy-action@v4.4.0 | |
if: github.ref == 'refs/heads/main' | |
with: | |
branch: gh-pages | |
folder: public |