From e72839a1fd1f91148439a7d40850cee03cd11603 Mon Sep 17 00:00:00 2001 From: Licoy Date: Tue, 21 Jun 2022 20:59:50 +0800 Subject: [PATCH] feat: update build workflows --- .github/workflows/build-linux.yml | 3 ++- .github/workflows/build-mac.yml | 10 +++++++--- .github/workflows/build-windows.yml | 3 ++- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index e6d0b21..abca2e1 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -20,7 +20,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.17.4 + go-version: 1.18.2 - name: Get dependencies run: sudo apt update && sudo apt install xorg-dev @@ -43,6 +43,7 @@ jobs: uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: + draft: true append_body: true files: fetch-github-hosts_${{ env.RELEASE_VERSION }}_linux_amd64.tar.gz env: diff --git a/.github/workflows/build-mac.yml b/.github/workflows/build-mac.yml index c5668da..21c32a3 100644 --- a/.github/workflows/build-mac.yml +++ b/.github/workflows/build-mac.yml @@ -20,13 +20,16 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.17.4 + go-version: 1.18.2 + + - name: Go tidy + run: go mod tidy - name: Install fyne - run: go install fyne.io/fyne/v2/cmd/fyne + run: go get fyne.io/fyne/v2/cmd/fyne && go install fyne.io/fyne/v2/cmd/fyne - name: Package for MacOS - run: fyne package --release -os darwin + run: fyne package --release -os darwin - name: Compress uses: a7ul/tar-action@v1.1.0 @@ -43,6 +46,7 @@ jobs: uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: + draft: true append_body: true files: fetch-github-hosts_${{ env.RELEASE_VERSION }}_macOS_amd64.tar.gz env: diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index e20a5ef..4b625e8 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -20,7 +20,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.17.4 + go-version: 1.18.2 - name: Get dependencies run: sudo apt update && sudo apt install gcc xorg-dev gcc-mingw-w64 @@ -43,6 +43,7 @@ jobs: uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: + draft: true append_body: true files: fetch-github-hosts_${{ env.RELEASE_VERSION }}_windows_amd64.tar.gz env: