-
Notifications
You must be signed in to change notification settings - Fork 4
57 lines (49 loc) · 1.2 KB
/
macos-build.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
name: Build-MacOS
on:
push:
branches:
- master
- macos_build
pull_request:
jobs:
build:
name: "Build PhotoBroom sources on MacOS"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-15]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install system dependencies
run: |
brew link --overwrite pkgconf
brew install \
llvm \
ninja \
dlib \
exiv2 \
opencv \
qt6
- name: Install CsLibGuarded
run: |
git clone -b libguarded-1.4.1 https://github.com/copperspice/cs_libguarded.git
cd cs_libguarded
mkdir build
cd build
cmake ..
cmake --build . --target all
sudo cmake --build . --target install
- name: Build
uses: ashutoshvarma/action-cmake-build@master
with:
build-dir: ${{ runner.workspace }}/build
build-type: Release
configure-options:
-DBUILD_TESTING=OFF
-DBUILD_SHARED_LIBS=ON
-G Ninja
env:
VERBOSE: 1