Skip to content

Commit

Permalink
feat: update build workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Licoy committed Jun 21, 2022
1 parent 98e3b80 commit e72839a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/build-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand All @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit e72839a

Please sign in to comment.