fix: add conditional env
This commit is contained in:
parent
1942b251c7
commit
1575047197
9
.github/workflows/release.yaml
vendored
9
.github/workflows/release.yaml
vendored
|
@ -8,7 +8,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
goos: [windows]
|
goos: [linux, windows]
|
||||||
goarch: [amd64]
|
goarch: [amd64]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -16,8 +16,11 @@ jobs:
|
||||||
run: sudo apt-get install build-essential mingw-w64
|
run: sudo apt-get install build-essential mingw-w64
|
||||||
- name: Set VERSION env
|
- name: Set VERSION env
|
||||||
run: echo VERSION=$(basename ${GITHUB_REF}) >> ${GITHUB_ENV}
|
run: echo VERSION=$(basename ${GITHUB_REF}) >> ${GITHUB_ENV}
|
||||||
- name: Set GO env
|
- name: Set GO_ENABLED env
|
||||||
run: echo CGO_ENABLED=1 >> ${GITHUB_ENV} && echo CC=x86_64-w64-mingw32-gcc >> ${GITHUB_ENV}
|
run: echo CGO_ENABLED=1 >> ${GITHUB_ENV}
|
||||||
|
- name: Set Windows C Compiler GO env
|
||||||
|
if: ${{ matrix.goos == 'windows'}}
|
||||||
|
run: echo CC=x86_64-w64-mingw32-gcc >> ${GITHUB_ENV}
|
||||||
- uses: wangyoucao577/go-release-action@v1.20
|
- uses: wangyoucao577/go-release-action@v1.20
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.RELEASE_TOKEN }}
|
github_token: ${{ secrets.RELEASE_TOKEN }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user