From c54f60c3a738db09ac57ebdfc12478c01b70aa35 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Thu, 27 Oct 2022 14:04:35 +0900 Subject: [PATCH] .github/workflows: use a version suffix for go-install --- .github/workflows/test.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 60bcf6c19..c5171f339 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,13 +45,8 @@ jobs: - name: Install wasmbrowsertest run: | - # TODO: Use go install github.com/agnivade/wasmbrowsertest@... on Go 1.16 or later. - mkdir /tmp/wasmbrowsertest - 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' || '' }} + go install github.com/agnivade/wasmbrowsertest@latest + mv $(go env GOPATH)/bin/wasmbrowsertest${{ startsWith(matrix.os, 'windows-') && '.exe' || '' }} $(go env GOPATH)/bin/go_js_wasm_exec${{ startsWith(matrix.os, 'windows-') && '.exe' || '' }} - name: Prepare ebitenmobile test if: ${{ !startsWith(matrix.go, '1.16.') }}