forked from mapeditor/tiled
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) · 1.25 KB
/
macos-latest.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
48
49
50
51
52
53
54
55
name: Compile on latest macOS (Homebrew)
on:
push:
paths-ignore:
- 'docs/**'
- '**.md'
- 'appveyor.yml'
- '.travis.yml'
branches-ignore: [snapshot]
pull_request:
paths-ignore:
- 'docs/**'
- '**.md'
- 'appveyor.yml'
- '.travis.yml'
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
brew install qbs
- name: Setup Qbs
run: |
qbs setup-toolchains --detect
qbs config defaultProfile xcode
- name: Build
run: |
export TILED_VERSION=$(git describe | cut -c 2-)
qbs build config:release qbs.installPrefix:"" projects.Tiled.version:$TILED_VERSION
- name: Package
run: |
export TILED_VERSION=$(git describe | cut -c 2-)
qbs install --install-root install config:release
macdeployqt install/Tiled.app -verbose=2
pushd install
ruby ../dist/macos/fixup-install-names.rb
ditto -c -k --sequesterRsrc --keepParent Tiled.app ../Tiled-$TILED_VERSION-macos.zip
popd
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Tiled.app
path: Tiled-*-macos.zip