Skip to content

Commit

Permalink
static and dynamic builds
Browse files Browse the repository at this point in the history
  • Loading branch information
geovex committed Jan 6, 2024
1 parent e2afa65 commit 17be44e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]
go-version: ['1.21']
cgo: [0, 1]
runs-on: ${{ matrix.os }}
env:
# mostly needed for artifacts
CGO_ENABLED: 0
CGO_ENABLED: ${{ matrix.cgo }}
steps:
- uses: actions/checkout@v4

Expand All @@ -36,6 +37,7 @@ jobs:

- name: Artifacts
uses: actions/upload-artifact@v4
if: env.CGO_ENABLED == 0
with:
name: target-${{ matrix.os }}-go-${{ matrix.go-version }}
path: |
Expand Down

0 comments on commit 17be44e

Please sign in to comment.