Skip to content

fix(gnb): link macOS UniformTypeIdentifiers framework #24

fix(gnb): link macOS UniformTypeIdentifiers framework

fix(gnb): link macOS UniformTypeIdentifiers framework #24

Workflow file for this run

name: gnb publish
on:
push:
branches:
- main
- dev
paths:
- 'tools/gnb/**/*.go'
- 'tools/gnb/**/*.html'
- 'tools/gnb/go.mod'
- 'tools/gnb/go.sum'
- 'gnb.bat'
- 'gnb.sh'
- 'scripts/gnb-init.sh'
- 'scripts/gnb-init.ps1'
- 'scripts/publish-gnb.ps1'
- '.github/workflows/gnb-release.yml'
workflow_dispatch:
concurrency:
group: gnb-paks-latest
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- platform: windows-amd64
runner: windows-latest
asset: gnb-windows-amd64.exe
- platform: linux-amd64
runner: ubuntu-24.04
asset: gnb-linux-amd64
- platform: macos-arm64
runner: macos-14
asset: gnb-macos-arm64
- platform: macos-amd64
runner: macos-13
asset: gnb-macos-amd64
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.23.x'
- name: Install Wails Linux dependencies
if: matrix.platform == 'linux-amd64'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev
- name: Build native gnb binary
shell: pwsh
run: >-
./scripts/publish-gnb.ps1
-Platforms '${{ matrix.platform }}'
-BuildOnly
-SkipLocalCache
-Version '${{ github.sha }}'
- uses: actions/upload-artifact@v4
with:
name: gnb-${{ matrix.platform }}
path: out/dist/gnb/${{ matrix.asset }}
if-no-files-found: error
publish:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
pattern: gnb-*
path: out/dist/gnb
merge-multiple: true
- name: Publish gnb to paks-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: pwsh
run: >-
./scripts/publish-gnb.ps1
-Platforms windows-amd64,linux-amd64,macos-arm64,macos-amd64
-PublishOnly
-Version '${{ github.sha }}'
-Repo '${{ github.repository }}'
-Tag 'paks-latest'