Merge branch 'main' into database
This commit is contained in:
+77
-29
@@ -15,29 +15,8 @@ env:
|
|||||||
NODE_OPTIONS: "--max-old-space-size=4096"
|
NODE_OPTIONS: "--max-old-space-size=4096"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-linux:
|
||||||
strategy:
|
runs-on: ubuntu-latest
|
||||||
# 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 }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@@ -58,27 +37,96 @@ jobs:
|
|||||||
uses: dAppServer/wails-build-action@main
|
uses: dAppServer/wails-build-action@main
|
||||||
id: build
|
id: build
|
||||||
with:
|
with:
|
||||||
build-name: ${{ matrix.build.name }}
|
build-name: yellowjacket
|
||||||
build-platform: ${{ matrix.build.platform }}
|
build-platform: 'linux/amd64'
|
||||||
go-version: '1.24'
|
go-version: '1.24'
|
||||||
package: false
|
package: false
|
||||||
app-working-directory: ${{ github.workspace }}
|
app-working-directory: ${{ github.workspace }}
|
||||||
|
|
||||||
|
- name: List Files
|
||||||
|
run: find ${{ github.workspace }}/build -type f
|
||||||
|
|
||||||
- name: Upload Binaries
|
- name: Upload Binaries
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.build.artifact-name }}
|
name: yellowjacket
|
||||||
path: ${{ github.workspace }}/build/bin/${{ matrix.build.bin-name }}
|
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:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: [build-linux, build-mac, build-windows]
|
||||||
steps:
|
steps:
|
||||||
- name: Download Artifacts
|
- name: Download Artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
path: ${{ github.workspace }}/bin
|
path: ${{ github.workspace }}/bin
|
||||||
|
- run: find ${{ github.workspace }}/bin -type f
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
if: github.ref_type == 'tag'
|
if: github.ref_type == 'tag'
|
||||||
@@ -94,5 +142,5 @@ jobs:
|
|||||||
|
|
||||||
- Linux: `yellowjacket`
|
- Linux: `yellowjacket`
|
||||||
- Windows: `yellowjacket.exe`
|
- Windows: `yellowjacket.exe`
|
||||||
- MacOS: `yellowjacket.app`
|
- MacOS: `yellowjacket.app.zip`
|
||||||
files: ${{ github.workspace }}/bin/*
|
files: ${{ github.workspace }}/bin/*
|
||||||
|
|||||||
Reference in New Issue
Block a user