Skip to content

Commit

Permalink
chore: add darwin x86_64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Nemerson committed Nov 28, 2023
1 parent 2ef82a4 commit 958fc65
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,22 @@ jobs:
path: bin
key: ${{ github.sha }}
restore-keys: ${{ github.sha }}
- name: Build Linux binary with Boringcrypto
- name: Build Linux x86_64 binary with Boringcrypto
run: |
CC=x86_64-linux-gnu-gcc CGO_ENABLED=1 GOARCH=amd64 GOOS=linux GOEXPERIMENT=boringcrypto \
go build -o bin/terraform-provider-aws.linux.amd64 .
- name: Verify Boringcrypto
run: |
go run rsc.io/goversion@master -crypto bin/terraform-provider-aws.linux.amd64 | grep -q '(boring crypto)'
# boringcrypto isn't available for darwin, so we can also disable CGO.
- name: Build Darwin binary without Boringcrypto
- name: Build Darwin arm64 binary without Boringcrypto
run: |
CGO_ENABLED=0 GOARCH=arm64 GOOS=darwin \
go build -o bin/terraform-provider-aws.darwin.arm64 .
- name: Build Darwin x86_64 binary without Boringcrypto
run: |
CGO_ENABLED=0 GOARCH=amd64 GOOS=darwin \
go build -o bin/terraform-provider-aws.darwin.amd64 .
release:
runs-on: ubuntu-latest
needs: build
Expand Down

0 comments on commit 958fc65

Please sign in to comment.