separated build jobs for each platform

This commit is contained in:
2025-04-16 12:47:05 -05:00
parent 9b63ce69b3
commit 81e753a0f4
+70 -20
View File
@@ -15,29 +15,17 @@ env:
NODE_OPTIONS: "--max-old-space-size=4096" NODE_OPTIONS: "--max-old-space-size=4096"
jobs: jobs:
build: build-linux:
strategy: strategy:
# Failure in one platform build won't impact the others
fail-fast: false
matrix: matrix:
build: build:
- name: 'yellowjacket'
platform: 'linux/amd64'
os: 'ubuntu-latest'
bin-name: 'yellowjacket'
artifact-name: 'yellowjacket'
- name: 'yellowjacket' - name: 'yellowjacket'
platform: 'windows/amd64' platform: 'windows/amd64'
os: 'windows-latest' os: 'windows-latest'
bin-name: 'yellowjacket' bin-name: 'yellowjacket'
artifact-name: 'yellowjacket.exe' 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 }} runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
@@ -58,23 +46,85 @@ 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 }}
- run: find ${{ github.workspace }} - run: find ${{ github.workspace }}/build -t 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 }}
- run: find ${{ github.workspace }}/build -t f
- name: Upload Binaries
uses: actions/upload-artifact@v4
with:
name: yellowjacket.app
path: ${{ github.workspace }}/build/bin/yellowjacket.app
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 }}
- run: dir ${{ github.workspace }}\build /s /b
- name: Upload Binaries
uses: actions/upload-artifact@v4
with:
name: yellowjacket.exe
path: ${{ github.workspace }}\build\bin\yellowjacket
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