-
Notifications
You must be signed in to change notification settings - Fork 3
77 lines (68 loc) · 2.76 KB
/
macOS.x64.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
name: macOS x64
on: [push, pull_request]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
path: 'XingDBG'
submodules: 'true'
- name: Make dir
working-directory: ${{github.workspace}}
run: |
mkdir out
mkdir build
- name: Download deps
id: downloadDeps
working-directory: ${{github.workspace}}
run: |
wget https://github.com/XingDBG/dbg.deps.mac.x64/releases/download/v0.1.0/qt.tar.xz -q
tar -xJf qt.tar.xz -C ${{github.workspace}}/out/
wget https://github.com/XingDBG/dbg.deps.mac.x64/releases/download/v0.1.0/lldb.tar.xz -q
tar -xJf lldb.tar.xz -C ${{github.workspace}}/out/
ls -laF
ls -laF ${{github.workspace}}/out/
cp ${{github.workspace}}/out/lldb/bin/lldb-server ${{github.workspace}}/out
- name: Setup Ninja
run: |
brew install ninja
- name: Build XingDBG
working-directory: ${{github.workspace}}
run: |
cd build
mkdir XingDBG
cd XingDBG
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release \
-DQt6_DIR="${{github.workspace}}/out/qt/lib/cmake/Qt6" \
-DQt6BundledPcre2_DIR="${{github.workspace}}/out/qt/lib/cmake/Qt6BundledPcre2" \
-DQt6BundledLibpng_DIR="${{github.workspace}}/out/qt/lib/cmake/Qt6BundledLibpng" \
-DQt6CoreTools_DIR="${{github.workspace}}/out/qt/lib/cmake/Qt6CoreTools" \
-DQt6BundledHarfbuzz_DIR="${{github.workspace}}/out/qt/lib/cmake/Qt6BundledHarfbuzz" \
-DQt6BundledFreetype_DIR="${{github.workspace}}/out/qt/lib/cmake/Qt6BundledFreetype" \
-DQt6GuiTools_DIR="${{github.workspace}}/out/qt/lib/cmake/Qt6GuiTools" \
-DQt6WidgetsTools_DIR="${{github.workspace}}/out/qt/lib/cmake/Qt6WidgetsTools" \
-DLLVM_DIR="${{github.workspace}}/out/lldb/lib/cmake/llvm" \
-DKDDockWidgets_QT6=ON \
-DKDDockWidgets_STATIC=ON \
-DKDDockWidgets_EXAMPLES=OFF \
-DKDDockWidgets_STATIC=ON \
${{github.workspace}}/XingDBG
cmake --build . --parallel
cp -R XingDBG.app ${{github.workspace}}/out/
- name: Pack files
working-directory: ${{github.workspace}}/out
run: |
tar -cJf XingDBG-mac-x64.tar.xz XingDBG.app
- uses: actions/upload-artifact@v2
with:
path: ${{github.workspace}}/out/*.tar.xz
- uses: xresloader/upload-to-github-release@v1
if: contains(github.ref, 'tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "out/*.tar.xz"
overwrite: true
tags: true
draft: false