2021-10-27 15:42:35 +02:00
|
|
|
name: OS X
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: GPXSee
|
|
|
|
runs-on: macos-10.15
|
|
|
|
steps:
|
2021-10-27 16:04:03 +02:00
|
|
|
- name: Set environment variables
|
|
|
|
run: echo "PATH=/usr/local/opt/qt@5/bin:$PATH" >> $GITHUB_ENV
|
2021-10-27 15:42:35 +02:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
|
|
|
run: brew install qt5
|
2021-10-27 15:46:02 +02:00
|
|
|
- name: Create localization
|
2021-10-27 15:42:35 +02:00
|
|
|
run: lrelease gpxsee.pro
|
2021-10-27 15:46:02 +02:00
|
|
|
- name: Configure build
|
2021-10-27 15:42:35 +02:00
|
|
|
run: qmake gpxsee.pro
|
|
|
|
- name: Build project
|
|
|
|
run: make -j3
|
2021-10-31 08:54:33 +01:00
|
|
|
- name: Create DMG
|
2021-10-31 09:06:34 +01:00
|
|
|
run: macdeployqt GPXSee.app -dmg
|
2021-10-31 08:54:33 +01:00
|
|
|
- name: Upload artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2021-10-31 09:15:18 +01:00
|
|
|
name: GPXSee.dmg
|
2021-10-31 09:06:34 +01:00
|
|
|
path: GPXSee.dmg
|