Files
yellowjacket/.github/workflows/wails.yml
T
2025-04-16 13:33:15 -05:00

147 lines
3.7 KiB
YAML

name: Release YellowJacket
run-name: Release ${{ github.ref_name }}
permissions:
contents: write
on:
push:
tags:
# Match any new tag
- '*'
env:
# Necessary for most environments as build failure can occur due to OOM issues
NODE_OPTIONS: "--max-old-space-size=4096"
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Dependencies
uses: ConorMacBride/install-package@v1
with:
apt: libasound2-dev
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Build wails
uses: dAppServer/wails-build-action@main
id: build
with:
build-name: yellowjacket
build-platform: 'linux/amd64'
go-version: '1.24'
package: false
app-working-directory: ${{ github.workspace }}
- name: List Files
run: find ${{ github.workspace }}/build -type f
- name: Upload Binaries
uses: actions/upload-artifact@v4
with:
name: yellowjacket
path: ${{ github.workspace }}/build/bin/yellowjacket
build-mac:
runs-on: 'macos-latest'
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Build wails
uses: dAppServer/wails-build-action@main
id: build
with:
build-name: yellowjacket
build-platform: 'darwin/universal'
go-version: '1.24'
package: false
app-working-directory: ${{ github.workspace }}
- name: List Files
run: find ${{ github.workspace }}/build -type f
- name: Upload Binaries
uses: actions/upload-artifact@v4
with:
name: yellowjacket.app.zip
path: ${{ github.workspace }}/build/bin/yellowjacket.app.zip
build-windows:
runs-on: 'windows-latest'
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Build wails
uses: dAppServer/wails-build-action@main
id: build
with:
build-name: yellowjacket.exe
build-platform: 'windows/amd64'
go-version: '1.24'
package: false
app-working-directory: ${{ github.workspace }}
- name: List Files
shell: powershell
run: Get-ChildItem -Path ${{ github.workspace }}\build -Recurse -File
- name: Upload Binaries
uses: actions/upload-artifact@v4
with:
name: yellowjacket.exe
path: ${{ github.workspace }}\build\bin\yellowjacket.exe
release:
runs-on: ubuntu-latest
needs: [build-linux, build-mac, build-windows]
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
merge-multiple: true
path: ${{ github.workspace }}/bin
- run: find ${{ github.workspace }}/bin -type f
- name: Release
uses: softprops/action-gh-release@v2
if: github.ref_type == 'tag'
with:
body: |
# YellowJacket Release ${{ github.ref_name }}
This is an early preview of YellowJacket. Please report any bugs to [our issues] page.
Thanks for trying out our app!
## Which do I click?
- Linux: `yellowjacket`
- Windows: `yellowjacket.exe`
- MacOS: `yellowjacket.app.zip`
files: ${{ github.workspace }}/bin/*