Disable Cgo for prebuilt binaries

This commit is contained in:
ayn2op 2023-06-04 00:59:49 +05:30
parent 3d46516b4e
commit b47bdd7742

View file

@ -11,12 +11,12 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version: '^1.19'
go-version: '^1.20'
- name: Build
run: go build .
run: CGO_ENABLED=0 go build .
- uses: actions/upload-artifact@v3
if: ${{ github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}