Skip to content

Remove now useless override of defaults #33

Remove now useless override of defaults

Remove now useless override of defaults #33

Workflow file for this run

name: js/wasm (smoke test)
on:
push:
branches:
- 'master'
paths:
- 'action.yml'
- '.github/workflows/js_wasm.yml'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
id: go
- name: Build go from tip
uses: iwdgo/gotip-build@master
id: gotip
with:
go_variables: GOOS=js GOARCH=wasm
test_build: false
- name: Test
if: true
run: |
export GOROOT=$(pwd)/go
echo $GOROOT
go env -w GOROOT=$GOROOT # create go environment file
mv -f go/bin/${{ env.goos }}_${{ env.goarch }}/* go/bin/ # erase native build
export GO_TEST_TIMEOUT_SCALE=4
export GOPROXY="https://proxy.golang.org,direct"
export GOSUMDB="sum.golang.org"
cd ./go
./lib/wasm/go_js_wasm_exec ./bin/go env
echo "Set up as in run.bash"
export GOENV=off
eval $(./lib/wasm/go_js_wasm_exec ./bin/go tool dist env)
unset CDPATH # in case user has it set
export GOHOSTOS
export GOHOSTARCH
# export CC
export GOPATH=/nonexist-gopath
./lib/wasm/go_js_wasm_exec ./bin/go tool
# go: RLock /home/runner/work/go-upon-ci/go-upon-ci/go/src/go.mod: unsupported operation
# cd ./src
# ../lib/wasm/go_js_wasm_exec ../bin/go test
# go: RLock go.mod: unsupported operation
#../lib/wasm/go_js_wasm_exec ../bin/go run cmd/dist test
- name: Upload go executable
uses: actions/upload-artifact@v3
if: ${{ env.crosscompile == 'true' }}
with:
name: gotip-${{ env.goos }}-${{ env.arch }}
path: go/