diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2022-01-29 22:05:57 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2022-01-29 22:05:57 +0100 |
commit | 2adb7ada424c81a069ee0d8af772b21eec0bee7b (patch) | |
tree | a0814d8ebf61d2353b07f3e2af97508d4dec8ffe | |
parent | cf14f822cf7e6114b8c306f2515a92df5c3c2df8 (diff) | |
download | engarde-importer-2adb7ada424c81a069ee0d8af772b21eec0bee7b.tar.gz engarde-importer-2adb7ada424c81a069ee0d8af772b21eec0bee7b.tar.bz2 engarde-importer-2adb7ada424c81a069ee0d8af772b21eec0bee7b.zip |
Build on windows and linux
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/release.yml | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dddf21a..80df935 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,13 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, windows-2022] + include: + - os: ubuntu-latest + output: bin/engarde-importer + ldflags: "" + - os: windows-2022 + output: bin/engarde-importer.exe + ldflags: "-H=windowsgui" env: GOARCH: amd64 steps: @@ -49,9 +55,6 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Get dependencies - run: go get -v -t -d ./... - - name: Build run: go build -v ./... @@ -62,14 +65,14 @@ jobs: run: go vet ./... - name: Release Build - run: go build -ldflags '-s -w -H=windowsgui' + run: go build -ldflags '-s -w ${matrix.ldflags}' -o ${matrix.output} - name: Upload Release uses: ColinPitrat/update-release@v1.0.1 id: update-release with: token: ${{ secrets.GITHUB_TOKEN }} - files: bin/* + files: ${matrix.output} tag: release |