-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (69 loc) · 1.83 KB
/
macos.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: macOS
on:
push:
branches: [main]
paths-ignore:
- "**.md"
- "**.pdf"
pull_request:
branches: [main]
paths-ignore:
- "**.md"
- "**.pdf"
jobs:
build:
env:
buildDir: "${{ github.workspace }}/build/"
MACOSX_DEPLOYMENT_TARGET: "10.15"
name: build on macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
# Install latest CMake.
- uses: lukka/get-cmake@latest
- name: Get current date
run: |
echo "DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: install non-vcpkg dependencies
env:
HOMEBREW_NO_ANALYTICS: "ON"
HOMEBREW_NO_AUTO_UPDATE: "ON"
HOMEBREW_NO_BOTTLE_SOURCE_FALLBACK: "ON"
HOMEBREW_NO_INSTALL_CLEANUP: "ON"
run: |
brew install pkg-config automake ninja ccache
- name: Set up ccache
run: |
ccache --set-config=cache_dir=${{ github.workspace }}/.ccache
ccache --set-config=max_size=500M
ccache --set-config=compression=true
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: 6.6.3
modules: "qtmultimedia"
cache: true
- name: cache ccache
uses: actions/cache@v4
with:
path: |
${{ github.workspace }}/.ccache
key: ${{ runner.os }}-build-${{ env.DATE }}
restore-keys: |
${{ runner.os }}-build-
- name: Configure & Build
run: |
./scripts/dist_mac.sh
- uses: actions/upload-artifact@v4
with:
name: arclight-macOS-x64
path: |
bin/*.dmg
LICENSE
LICENSE.LGPL
README.md
- name: ccache stats
run: |
ccache -s