On Release Published #2
Workflow file for this run
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
name: On Release Published | |
on: | |
release: | |
types: [published] | |
jobs: | |
publish-binaries-linux: | |
timeout-minutes: 20 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
- name: Get dependencies | |
run: | | |
sudo apt-get update \ | |
&& sudo apt-get install gcc \ | |
libgl1-mesa-dev libegl1-mesa-dev \ | |
libgles2-mesa-dev libx11-dev xorg-dev \ | |
libwayland-dev libxkbcommon-dev bc | |
- name: Install FyneCLi tool | |
run: go install fyne.io/fyne/v2/cmd/fyne@latest | |
- name: Build | |
run: make build-linux | |
- name: Rename archive | |
run: mv bin/Pinecone.tar.xz bin/Pinecone_linux.tar.xz | |
- name: Upload Linux Bin | |
uses: djn24/add-asset-to-release@v1 | |
with: | |
token: ${{secrets.GITHUB_TOKEN}} | |
path: 'bin/Pinecone_linux.tar.xz' | |
publish-binaries-mac: | |
timeout-minutes: 20 | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
- name: Install FyneCLi tool | |
run: go install fyne.io/fyne/v2/cmd/fyne@latest | |
- name: Build | |
run: make build-mac | |
- name: Zip App | |
run: zip -vr muscurdi_macos.zip bin/Pinecone.app -x "*.DS_Store" && mv muscurdi_macos.zip bin/ | |
- name: Upload MacOS Bin | |
uses: djn24/add-asset-to-release@v1 | |
with: | |
token: ${{secrets.GITHUB_TOKEN}} | |
path: 'bin/muscurdi_macos.zip' | |
publish-binaries-win: | |
timeout-minutes: 20 | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
- name: Set up MinGW | |
uses: egor-tensin/setup-mingw@v2 | |
with: | |
platform: x64 | |
- name: Install FyneCLi tool | |
run: go install fyne.io/fyne/v2/cmd/fyne@latest | |
- name: Build | |
run: make build-win | |
- name: Zip Binary | |
shell: pwsh | |
run: Compress-Archive "bin/Pinecone.exe" "Pinecone_win.zip" && mv Pinecone_win.zip bin/ | |
- name: Upload Win Bin | |
uses: djn24/add-asset-to-release@v1 | |
with: | |
token: ${{secrets.GITHUB_TOKEN}} | |
path: 'bin/Pinecone_win.zip' |