moves GOOS and GOARCH definitions into the env section for matrix build

This commit is contained in:
Christopher Lowenthal 2022-10-31 12:39:03 -04:00
parent a4f90b5309
commit fdc539f213

View file

@ -57,6 +57,10 @@ jobs:
- "amd64"
- "arm64"
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
steps:
- uses: actions/checkout@v3
@ -66,8 +70,8 @@ jobs:
- name: build featurebase
run: |
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o ./build/featurebase-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/featurebase
GOOS="darwin" GOARCH="arm64" go build -o ./build/roaring-migrate-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/roaring-migrate
go build -o ./build/featurebase-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/featurebase
go build -o ./build/roaring-migrate-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/roaring-migrate
- uses: actions/upload-artifact@v3
with: