-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60cdb90
commit 8c37b7d
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
on: | ||
release: | ||
types: [created] | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
packages: write | ||
|
||
jobs: | ||
releases-matrix: | ||
name: Release Go Binary | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: 'src/go.mod' | ||
- name: Install Requirements | ||
run: | | ||
# see https://github.com/fyne-io/fyne-cross-images/blob/main/linux/Dockerfile | ||
sudo dpkg --add-architecture amd64; | ||
sudo dpkg --add-architecture i386; | ||
sudo apt-get update | ||
sudo apt-get install -y --no-install-recommends build-essential gcc-multilib gcc-mingw-w64 pkg-config | ||
sudo apt-get install -y --no-install-recommends libgl-dev:amd64 libx11-dev:amd64 libxrandr-dev:amd64 libxxf86vm-dev:amd64 libxi-dev:amd64 libxcursor-dev:amd64 libxinerama-dev:amd64 libxkbcommon-dev:amd64 | ||
sudo apt-get install -y --no-install-recommends libgl-dev:i386 libx11-dev:i386 libxrandr-dev:i386 libxxf86vm-dev:i386 libxi-dev:i386 libxcursor-dev:i386 libxinerama-dev:i386 libxkbcommon-dev:i386 | ||
- name: Build Binaries | ||
cd src | ||
make all | ||
- name: Create Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: | | ||
src/golocal-linux-amd64 | ||
src/golocal-linux-386 | ||
src/golocal-windows-amd64.exe | ||
src/golocal-windows-386.exe | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
tag_name: ${{ github.ref }} | ||
release_name: ${{ github.ref }} | ||
draft: false | ||
prerelease: false |