Skip to content

Commit 6e338b1

Browse files
committed
Add macOS and Windows CI workflows, remove old disabled ones
Delete the three old qt-*.yml workflows (disabled, Qt 5.12) and replace with new macos-build.yml and windows-build.yml using Qt 6. All three platforms now build on push/PR to dev and master branches.
1 parent 4278db1 commit 6e338b1

5 files changed

Lines changed: 61 additions & 99 deletions

File tree

.github/workflows/macos-build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Build MapMap on macOS with Qt 6
2+
name: Build on macOS
3+
4+
on:
5+
push:
6+
branches: [ dev, master ]
7+
pull_request:
8+
branches: [ dev, master ]
9+
10+
jobs:
11+
build:
12+
runs-on: macos-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Install dependencies
19+
run: |
20+
brew install qt liblo
21+
22+
- name: Configure with qmake
23+
run: |
24+
export PATH="$(brew --prefix qt)/bin:$PATH"
25+
qmake mapmap.pro CONFIG+=release
26+
27+
- name: Build
28+
run: |
29+
export PATH="$(brew --prefix qt)/bin:$PATH"
30+
make -j$(sysctl -n hw.logicalcpu)

.github/workflows/qt-linux.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/qt-macos.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/qt-windows.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Build MapMap on Windows with Qt 6
2+
name: Build on Windows
3+
4+
on:
5+
push:
6+
branches: [ dev, master ]
7+
pull_request:
8+
branches: [ dev, master ]
9+
10+
jobs:
11+
build:
12+
runs-on: windows-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Install Qt 6
19+
uses: jurplel/install-qt-action@v4
20+
with:
21+
version: '6.8.0'
22+
host: 'windows'
23+
target: 'desktop'
24+
arch: 'win64_mingw'
25+
modules: 'qtmultimedia'
26+
27+
- name: Configure with qmake
28+
run: qmake mapmap.pro CONFIG+=release
29+
30+
- name: Build
31+
run: mingw32-make -j4

0 commit comments

Comments
 (0)