From fdc539f2131c71c7ff43d42927ce7654cf5d0a32 Mon Sep 17 00:00:00 2001 From: Christopher Lowenthal Date: Mon, 31 Oct 2022 12:39:03 -0400 Subject: [PATCH] moves GOOS and GOARCH definitions into the env section for matrix build --- .github/workflows/release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index badac5963..4b2acd372 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: