-
Notifications
You must be signed in to change notification settings - Fork 4
/
codemagic.yaml
61 lines (61 loc) · 2.08 KB
/
codemagic.yaml
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
workflows:
macos-m1:
instance_type: mac_mini_m1
triggering:
events:
- tag
environment:
groups:
- my_tokens
xcode: latest
scripts:
- name: Install common prerequisties
script: |
brew update
brew install --display-times muparser liborigin gsl gl2ps googletest
- name: Install qwt (Qt5)
script: |
brew install --display-times qwt-qt5
- name: Configuring (Qt5)
script: |
PATH=/opt/homebrew/opt/qt@5/bin:$PATH \
cmake \
--preset macos \
-DCMAKE_BUILD_TYPE=Release \
-DMAKHBER_FORCE_QT5=ON \
-DCMAKE_PREFIX_PATH=/opt/homebrew/opt/qwt-qt5 \
-B build/macos-qt5
- name: Building (Qt5)
script: |
cmake --build build/macos-qt5 -j$(sysctl -n hw.logicalcpu)
- name: Install qwt (Qt6)
script: |
brew install --display-times qwt
- name: Configuring (Qt6)
script: |
cmake \
--preset macos \
-DCMAKE_BUILD_TYPE=Release \
-B build/macos-qt6
- name: Building (Qt6)
script: |
cmake --build build/macos-qt6 -j$(sysctl -n hw.logicalcpu)
- name: Testing
script: |
ctest --test-dir build/macos-qt5 --repeat until-pass:3
ctest --test-dir build/macos-qt6 --repeat until-pass:3
- name: Packaging
script: |
cd build/macos-qt6
cpack -G DragNDrop
mv *.dmg Makhber-${CM_TAG}-macos-$(uname -m)-Qt6.dmg
cd ../../build/macos-qt5
cpack -G DragNDrop
mv *.dmg Makhber-${CM_TAG}-macos-$(uname -m)-Qt5.dmg
- name: Uploading & Publishing
script: |
cp build/macos-qt6/Makhber-${CM_TAG}-macos-$(uname -m)-Qt6.dmg $CM_EXPORT_DIR/
cp build/macos-qt5/Makhber-${CM_TAG}-macos-$(uname -m)-Qt5.dmg $CM_EXPORT_DIR/
gh release upload "${CM_TAG}" \
build/macos-qt6/Makhber-${CM_TAG}-macos-$(uname -m)-Qt6.dmg \
build/macos-qt5/Makhber-${CM_TAG}-macos-$(uname -m)-Qt5.dmg