Skip to content

Fix the uniqueness check in list to actually work as expected. #246

Fix the uniqueness check in list to actually work as expected.

Fix the uniqueness check in list to actually work as expected. #246

Workflow file for this run

name: Go
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Update apt-get
run: sudo apt-get update
- name: Install xorg-dev
run: sudo apt-get install -y xorg-dev
- name: Install libgl1-mesa-dev
run: sudo apt-get install -y libgl1-mesa-dev
- name: Build
run: go build -v ./...
- name: Build Demo wasm
run: GOOS=js GOARCH=wasm go build -o ./wasm/demo.wasm ./_examples/demo
- name: Build examples
run: |
find ./_examples/widget_demos -maxdepth 1 -mindepth 1 -type d -exec bash -c 'MARK=$(basename "{}") && GOOS=js GOARCH=wasm go build -o ./wasm/$MARK.wasm {}' \;
ls ./wasm
- name: Deploy Examples to docs/wasm
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./wasm # The folder the action should deploy.
branch: master
target-folder: docs/wasm
repository-name: ebitenui/ebitenui.github.io
token: ${{ secrets.EBITENUI_TOKEN }}
- name: Deploy Examples to content/wasm
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./wasm # The folder the action should deploy.
branch: master
target-folder: content/wasm
repository-name: ebitenui/ebitenui.github.io
token: ${{ secrets.EBITENUI_TOKEN }}