1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-16 11:54:23 +02:00
Files
GPXSee/.github/workflows/osx.yml
2025-07-06 15:15:31 +02:00

47 lines
1.4 KiB
YAML

name: OS X
on:
push:
branches:
- master
jobs:
build:
name: GPXSee
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: '6.9.1'
modules: qtpositioning qtserialport qtimageformats
- name: Create localization
run: lrelease gpxsee.pro
- name: Configure build
run: qmake gpxsee.pro QMAKE_APPLE_DEVICE_ARCHS="x86_64h arm64"
- name: Build project
run: make -j3
- name: Get latest QtPBFImagePlugin run-id
id: runid
run: echo "runid=$(gh run list --repo tumic0/QtPBFImagePlugin --workflow 'OS X' --limit 1 --json databaseId -q '.[0].databaseId')" >> $GITHUB_OUTPUT
env:
GH_TOKEN: ${{ github.token }}
- name: Download QtPBFImagePlugin
uses: actions/download-artifact@v4
with:
name: libpbf.dylib
github-token: ${{ github.token }}
repository: tumic0/QtPBFImagePlugin
path: GPXSee.app/Contents/Plugins/imageformats
merge-multiple: true
run-id: ${{steps.runid.outputs.runid}}
- name: Create DMG
run: macdeployqt GPXSee.app -dmg -appstore-compliant
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
path: GPXSee.dmg
name: GPXSee.dmg