fix: dependency package for win build

This commit is contained in:
Lakhan Samani 2021-09-11 11:52:52 +05:30
parent 1575047197
commit 425d14e3af

View File

@ -8,12 +8,15 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
goos: [linux, windows] goos: [windows]
goarch: [amd64] goarch: [amd64]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install dependencies - name: Install dependencies
run: sudo apt-get install build-essential mingw-w64 run: sudo apt-get install build-essential
- name: Install windows dependencies
if: ${{ matrix.goos == 'windows'}}
run: sudo apt-get install gcc-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_ENABLED env - name: Set GO_ENABLED env