.github/workflows: use a version suffix for go-install

This commit is contained in:
Hajime Hoshi 2022-10-27 14:04:35 +09:00
parent 6eb4b2762f
commit c54f60c3a7

View File

@ -45,13 +45,8 @@ jobs:
- name: Install wasmbrowsertest - name: Install wasmbrowsertest
run: | run: |
# TODO: Use go install github.com/agnivade/wasmbrowsertest@... on Go 1.16 or later. go install github.com/agnivade/wasmbrowsertest@latest
mkdir /tmp/wasmbrowsertest mv $(go env GOPATH)/bin/wasmbrowsertest${{ startsWith(matrix.os, 'windows-') && '.exe' || '' }} $(go env GOPATH)/bin/go_js_wasm_exec${{ startsWith(matrix.os, 'windows-') && '.exe' || '' }}
cd /tmp/wasmbrowsertest
go mod init foo
go get github.com/agnivade/wasmbrowsertest
go build -o wasmbrowsertest${{ startsWith(matrix.os, 'windows-') && '.exe' || '' }} github.com/agnivade/wasmbrowsertest
mv ./wasmbrowsertest${{ startsWith(matrix.os, 'windows-') && '.exe' || '' }} $(go env GOPATH)/bin/go_js_wasm_exec${{ startsWith(matrix.os, 'windows-') && '.exe' || '' }}
- name: Prepare ebitenmobile test - name: Prepare ebitenmobile test
if: ${{ !startsWith(matrix.go, '1.16.') }} if: ${{ !startsWith(matrix.go, '1.16.') }}