Skip to content

Release

Release #1

Workflow file for this run

name: Release
on:
push:
tags:
- '*'
workflow_dispatch:
permissions:
contents: write
jobs:
build:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '>=1.21.0'
- name: Setup toolchain
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y build-essential libgl1-mesa-dev xorg-dev
- name: Setup MSYS2
if: runner.os == 'Windows'
uses: msys2/setup-msys2@v2
with:
update: true
msystem: UCRT64
install: >-
mingw-w64-ucrt-x86_64-toolchain
wget
zip
unzip
- name: Build for Linux
if: runner.os == 'Linux'
run: |
go install fyne.io/fyne/v2/cmd/fyne@latest
fyne package -os linux -icon asset/icon2.png
mkdir lpac
tar xf EasyLPAC.tar.xz
mv usr/local/bin/EasyLPAC ./
tar zcf EasyLPAC-linux-x86_64.tar.gz EasyLPAC lpac
- name: Build for Windows
if: runner.os == 'Windows'
run: |
go install fyne.io/fyne/v2/cmd/fyne@latest
fyne package -os windows -icon asset/icon2.png
mkdir lpac
wget https://github.com/estkme-group/lpac/releases/download/v0.0.8-alpha/lpac-windows-x86_64-mingw.zip -O lpac-mingw.zip
unzip lpac-mingw.zip -d lpac
zip -r EasyLPAC-windows-x86_64-with-lpac.zip EasyLPAC.exe lpac
shell: msys2 {0}
- name: Build for macOS
if: runner.os == 'macOS'
run: |
go install fyne.io/fyne/v2/cmd/fyne@latest
fyne package -os darwin -icon asset/icon2.png
mkdir lpac
wget https://github.com/estkme-group/lpac/releases/download/v0.0.8-alpha/lpac-macos-universal.zip -O lpac.zip
unzip lpac.zip -d lpac
zip -r EasyLPAC-macOS-universal-with-lpac.zip EasyLPAC.app lpac
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: |
EasyLPAC-windows-x86_64-with-lpac.zip
EasyLPAC-linux-x86_64.tar.gz
EasyLPAC-macOS-universal-with-lpac.zip
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
EasyLPAC-windows-x86_64-with-lpac.zip
EasyLPAC-linux-x86_64.tar.gz
EasyLPAC-macOS-universal-with-lpac.zip