-
-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (43 loc) · 1.65 KB
/
BuildOnMac.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Release
on:
push:
branches: [ "deploy" ]
jobs:
macos:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Install Qt dependencies
uses: jurplel/install-qt-action@v3
with:
version: 6.5.3
cache: true
modules: 'qtscxml qt5compat qtshadertools qtimageformats qtwebsockets'
- name: run qmake
run: qmake6 -makefile -o src/Makefile src/ArdorQuery.pro
- name: run make
run: make -C src
- name: Run MacDeployQt
run: cd src && macdeployqt ArdorQuery.app -appstore-compliant -dmg -qmldir=.
- uses: actions/upload-artifact@v3
with:
path: src/ArdorQuery.dmg
linuxdebpackage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: apt-update
run: sudo apt-get update -qq
- name: apt get qt
run: sudo apt-get install -y --no-install-recommends qt6-base-dev libqt6websockets6-dev libqt6svg6-dev qt6-declarative-dev qml6-module-qtquick qml6-module-qtquick-controls qml6-module-qtquick-dialogs qml6-module-qtquick-templates qml6-module-qtquick-window qml6-module-qtquick-layouts qml6-module-qtqml-workerscript qml-qt6 libqt6quick6 libqt6quickcontrols2-6 libqt6opengl6-dev libgl1-mesa-dev
- name: run qmake
run: qmake6 -makefile -o src/Makefile src/ArdorQuery.pro
- name: run make
run: make -C src
- name: copy executable
run: mkdir -p scripts/deb/source/usr/bin/ && cp src/ArdorQuery scripts/deb/source/usr/bin/ArdorQuery
- name: build deb
run: dpkg-deb -b scripts/deb/source ardorquery_amd64.deb
- uses: actions/upload-artifact@v3
with:
path: ardorquery_amd64.deb