Merge pull request #1894 from gravitl/gra-851-nmctl-workflow

prevent libc errors by building static binary
This commit is contained in:
dcarns 2023-01-03 22:20:55 -05:00 committed by GitHub
commit 735901d988
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,10 +83,10 @@ jobs:
- name: Build - name: Build
run: | run: |
cd cli cd cli
GOOS=linux GOARCH=amd64 go build -o nmctl-linux-amd64 CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o nmctl-linux-amd64
GOOS=darwin GOARCH=amd64 go build -o nmctl-darwin-amd64 CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o nmctl-darwin-amd64
GOOS=darwin GOARCH=arm64 go build -o nmctl-darwin-arm64 CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o nmctl-darwin-arm64
GOOS=windows GOARCH=amd64 go build -o nmctl-windows-amd64 CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o nmctl-windows-amd64
- name: Upload nmctl-linux-amd64 to Release - name: Upload nmctl-linux-amd64 to Release
continue-on-error: true continue-on-error: true
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2