Files
yellowjacket/.github/workflows/wails.yml
T
logan d062644a3e fix ci release (#26)
* added package flag to build ci

* bump wails-build-action version

* updated dependencies and go version to 1.24

* fixed wails build action version and point to go1.24

* using main version of wails build action

* added dependencies step

* added write permission for workflow

* switched alsa dep for proper dep

* added pnpm install step

* added pnpm version

* added os name to binary output

* undo last commit

* renamed windows binary, manually handle release

* fixed github ref name variable

* moved release to different job

* set build pre-req for release

* fixing artifact handling, manual upload

* fixed working directory

* fixed artifact naming

* fixing upload and download

* fixed artifact upload name

* fixed upload artifact name again

* upload all binaries

* fixed input and output binary files

* removed temporary artifact deletion

* trying to fix the artifact path for upload

* fix release glob pattern

* fixed glob path for subdirectories from download step

* fixed release version

* oops wrong release action version

* lets put all artifacts in the same directory

* remove prerelease

* set static run name

* added find steps for troubleshooting

* fix windows path for debugging

* turns out you cant do conditionals on matrix

* apparently you cant use type on windows either

* separated build jobs for each platform

* hopefully fixed all of the find commands

* hope to fix the windows dir command

* trying to add quotes to fix windows dir command

* ill try powershell instead

* fixed windows upload file and named find step

* fixed mac file upload
2025-04-16 13:44:55 -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/*