From 2adb7ada424c81a069ee0d8af772b21eec0bee7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sat, 29 Jan 2022 22:05:57 +0100 Subject: Build on windows and linux --- .github/workflows/release.yml | 15 +++++++++------ 1 file 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 -- cgit v1.2.3