Skip to content

Commit 1575047

Browse files
committed
fix: add conditional env
1 parent 1942b25 commit 1575047

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/release.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,19 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
goos: [windows]
11+
goos: [linux, windows]
1212
goarch: [amd64]
1313
steps:
1414
- uses: actions/checkout@v2
1515
- name: Install dependencies
1616
run: sudo apt-get install build-essential mingw-w64
1717
- name: Set VERSION env
1818
run: echo VERSION=$(basename ${GITHUB_REF}) >> ${GITHUB_ENV}
19-
- name: Set GO env
20-
run: echo CGO_ENABLED=1 >> ${GITHUB_ENV} && echo CC=x86_64-w64-mingw32-gcc >> ${GITHUB_ENV}
19+
- name: Set GO_ENABLED env
20+
run: echo CGO_ENABLED=1 >> ${GITHUB_ENV}
21+
- name: Set Windows C Compiler GO env
22+
if: ${{ matrix.goos == 'windows'}}
23+
run: echo CC=x86_64-w64-mingw32-gcc >> ${GITHUB_ENV}
2124
- uses: wangyoucao577/[email protected]
2225
with:
2326
github_token: ${{ secrets.RELEASE_TOKEN }}

0 commit comments

Comments
 (0)