Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
howjmay committed Nov 9, 2023
1 parent 1cb5ef9 commit 1082f52
Showing 1 changed file with 27 additions and 9 deletions.
36 changes: 27 additions & 9 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1082f52

Please sign in to comment.