mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 03:35:53 +01:00
57 lines
1.4 KiB
YAML
57 lines
1.4 KiB
YAML
name: OS X
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
qt5:
|
|
name: GPXSee Qt5 build
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Install Qt
|
|
uses: jurplel/install-qt-action@v3
|
|
with:
|
|
version: '5.15.2'
|
|
- name: Create localization
|
|
run: lrelease gpxsee.pro
|
|
- name: Configure build
|
|
run: qmake gpxsee.pro
|
|
- name: Build project
|
|
run: make -j3
|
|
- name: Create DMG
|
|
run: macdeployqt GPXSee.app -dmg -appstore-compliant
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: GPXSee-qt5.dmg
|
|
path: GPXSee.dmg
|
|
|
|
qt6:
|
|
name: GPXSee Qt6 build
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Install Qt
|
|
uses: jurplel/install-qt-action@v3
|
|
with:
|
|
version: '6.5.1'
|
|
modules: qtpositioning qt5compat qtserialport
|
|
- 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: Create DMG
|
|
run: macdeployqt GPXSee.app -dmg -appstore-compliant
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: GPXSee-qt6.dmg
|
|
path: GPXSee.dmg
|