Skip to content

ci: 从自动测试中移除了-race,因go内部调用的原因非常的慢(可能是unicode相关) #78

ci: 从自动测试中移除了-race,因go内部调用的原因非常的慢(可能是unicode相关)

ci: 从自动测试中移除了-race,因go内部调用的原因非常的慢(可能是unicode相关) #78

Workflow file for this run

name: Build Js Port
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Install gopherjs
run: |
go get -u github.com/gopherjs/[email protected]
go install github.com/gopherjs/[email protected]
- name: Build
run: gopherjs build github.com/sealdice/dicescript/jsport -o jsport/dicescript.cjs
- name: Bundle ESM
run: cd ./jsport && yarn && yarn build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.MY_TOKEN }}
publish_dir: ./jsport