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
This commit is contained in:
+77
-29
@@ -15,29 +15,8 @@ env:
|
||||
NODE_OPTIONS: "--max-old-space-size=4096"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
# Failure in one platform build won't impact the others
|
||||
fail-fast: false
|
||||
matrix:
|
||||
build:
|
||||
- name: 'yellowjacket'
|
||||
platform: 'linux/amd64'
|
||||
os: 'ubuntu-latest'
|
||||
bin-name: 'yellowjacket'
|
||||
artifact-name: 'yellowjacket'
|
||||
- name: 'yellowjacket'
|
||||
platform: 'windows/amd64'
|
||||
os: 'windows-latest'
|
||||
bin-name: 'yellowjacket'
|
||||
artifact-name: 'yellowjacket.exe'
|
||||
- name: 'yellowjacket'
|
||||
platform: 'darwin/universal'
|
||||
os: 'macos-latest'
|
||||
bin-name: 'yellowjacket.app'
|
||||
artifact-name: 'yellowjacket.app'
|
||||
|
||||
runs-on: ${{ matrix.build.os }}
|
||||
build-linux:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
@@ -58,27 +37,96 @@ jobs:
|
||||
uses: dAppServer/wails-build-action@main
|
||||
id: build
|
||||
with:
|
||||
build-name: ${{ matrix.build.name }}
|
||||
build-platform: ${{ matrix.build.platform }}
|
||||
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: ${{ matrix.build.artifact-name }}
|
||||
path: ${{ github.workspace }}/build/bin/${{ matrix.build.bin-name }}
|
||||
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
|
||||
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'
|
||||
@@ -94,5 +142,5 @@ jobs:
|
||||
|
||||
- Linux: `yellowjacket`
|
||||
- Windows: `yellowjacket.exe`
|
||||
- MacOS: `yellowjacket.app`
|
||||
- MacOS: `yellowjacket.app.zip`
|
||||
files: ${{ github.workspace }}/bin/*
|
||||
|
||||
Reference in New Issue
Block a user