1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 13:41:16 +01:00
GPXSee/.github/workflows/osx.yml

60 lines
1.5 KiB
YAML
Raw Normal View History

2021-10-27 15:42:35 +02:00
name: OS X
on:
push:
branches:
- master
jobs:
2022-02-03 23:06:29 +01:00
qt5:
name: GPXSee Qt5 build
runs-on: macos-latest
2021-10-27 15:42:35 +02:00
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
2022-11-19 13:20:06 +01:00
uses: actions/checkout@v3
2021-10-27 15:42:35 +02:00
- name: Install dependencies
2023-02-25 10:10:49 +01:00
run: |
brew update
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
run: macdeployqt GPXSee.app -dmg
2021-10-31 08:54:33 +01:00
- name: Upload artifacts
2022-11-19 13:20:06 +01:00
uses: actions/upload-artifact@v3
2021-10-31 08:54:33 +01:00
with:
2022-02-03 23:06:29 +01:00
name: GPXSee-qt5.dmg
path: GPXSee.dmg
qt6:
name: GPXSee Qt6 build
runs-on: macos-latest
steps:
- name: Set environment variables
run: echo "PATH=/usr/local/opt/qt@6/bin:$PATH" >> $GITHUB_ENV
- name: Checkout
2022-11-19 13:20:06 +01:00
uses: actions/checkout@v3
2022-02-03 23:06:29 +01:00
- name: Install dependencies
2023-02-25 10:10:49 +01:00
run: |
brew update
brew install qt6
2022-02-03 23:06:29 +01:00
- 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
- name: Upload artifacts
2022-11-19 13:20:06 +01:00
uses: actions/upload-artifact@v3
2022-02-03 23:06:29 +01:00
with:
name: GPXSee-qt6.dmg
path: GPXSee.dmg