Skip to content

Commit e864742

Browse files
ci: enable cgo for linux builds
1 parent a212718 commit e864742

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,16 @@ jobs:
5555
# build and publish in parallel: linux/amd64, linux/arm64, darwin/amd64, darwin/arm64
5656
goos: [darwin, linux]
5757
goarch: [amd64, arm64]
58-
5958
steps:
6059
- uses: actions/checkout@v4
6160
- name: Get libasound2
6261
run: |
6362
if [ "${{ matrix.goos }}" = "linux" ]; then
64-
sudo apt-get install libasound2-dev
63+
sudo apt-get install libasound2-dev;
6564
fi
65+
- name: Enable CGO for Linux builds
66+
if: matrix.goos == 'linux'
67+
run: echo "CGO_ENABLED=1" >> $GITHUB_ENV
6668
- uses: wangyoucao577/go-release-action@v1
6769
with:
6870
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)