diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 80efe305a7..d83abebe88 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -111,14 +111,32 @@ jobs: build-wasp-cli: runs-on: ubuntu-latest + strategy: + matrix: + arch: [amd64 arm64 386] + os: [linux windows darwin] steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - # More assembly might be required: Docker logins, GPG, etc. - # It all depends on your needs. - - uses: goreleaser/goreleaser-action@v5 + - name: Set up Go 1.x + uses: actions/setup-go@v4 with: - # either 'goreleaser' (default) or 'goreleaser-pro': - distribution: goreleaser - args: build -f ./tools/wasp-cli/.goreleaser_test_build.yml + go-version: "1.21" + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v4 + + - name: Get dependencies + run: | + make wasm + go get -v -t -d ./... + + - name: Build + run: | + os=( "linux" "windows" "darwin" ) + arch=( "amd64" "arm64" "386" ) + for i in "${!os[@]}"; do + for j in "${!arch[@]}"; do + GOOS=${os[i]} GOARCH=${arch[j]} make build-cli + done + done +