-
-
Notifications
You must be signed in to change notification settings - Fork 100
38 lines (31 loc) · 821 Bytes
/
macos-build.yml
File metadata and controls
38 lines (31 loc) · 821 Bytes
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
# Build MapMap on macOS with Qt 6
name: Build on macOS
on:
push:
branches: [ dev, master ]
pull_request:
branches: [ dev, master ]
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
brew install qt
- name: Configure with qmake
run: |
export PATH="$(brew --prefix qt)/bin:$PATH"
qmake mapmap.pro CONFIG+=release
- name: Build
run: |
export PATH="$(brew --prefix qt)/bin:$PATH"
make -j$(sysctl -n hw.logicalcpu)
- name: Build and run tests
run: |
export PATH="$(brew --prefix qt)/bin:$PATH"
cd tests/
qmake6 tests.pro
make -j$(sysctl -n hw.logicalcpu)
QT_QPA_PLATFORM=offscreen make check