mirror of
https://github.com/Xevion/HATray.git
synced 2025-12-06 01:15:11 -06:00
feat: automatic linux & windows builds
This commit is contained in:
72
.github/workflows/build.yml
vendored
Normal file
72
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
name: Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-linux:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: '1.24'
|
||||||
|
|
||||||
|
- name: Install Task
|
||||||
|
uses: arduino/setup-task@v2
|
||||||
|
|
||||||
|
- name: Build Linux Binary
|
||||||
|
run: task build
|
||||||
|
|
||||||
|
- name: Upload Linux Binary
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: HATray-linux-amd64
|
||||||
|
path: bin/HATray
|
||||||
|
|
||||||
|
build-windows:
|
||||||
|
runs-on: windows-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: '1.24'
|
||||||
|
|
||||||
|
- name: Install Task
|
||||||
|
uses: arduino/setup-task@v2
|
||||||
|
|
||||||
|
- name: Set up .NET for WiX
|
||||||
|
uses: actions/setup-dotnet@v4
|
||||||
|
with:
|
||||||
|
dotnet-version: '8.0.x'
|
||||||
|
|
||||||
|
- name: Install WiX Toolset
|
||||||
|
run: dotnet tool install --global wix
|
||||||
|
|
||||||
|
- name: Add WiX Extensions
|
||||||
|
run: |
|
||||||
|
wix extension add WixToolset.Util.wixext
|
||||||
|
wix extension add WixToolset.UI.wixext
|
||||||
|
|
||||||
|
- name: Build Windows Binary
|
||||||
|
run: task build
|
||||||
|
|
||||||
|
- name: Build MSI
|
||||||
|
run: task package
|
||||||
|
|
||||||
|
- name: Upload Windows Binary
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: HATray-windows-amd64.exe
|
||||||
|
path: bin/HATray.exe
|
||||||
|
|
||||||
|
- name: Upload MSI
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: HATray-windows-amd64.msi
|
||||||
|
path: bin/HATray-*.msi
|
||||||
Reference in New Issue
Block a user