Skip to content

Commit 36bd8d2

Browse files
iljukhaputdimkanovikov
authored andcommitted
Integrate BugSplat
1 parent d387d0d commit 36bd8d2

File tree

17 files changed

+1011
-106
lines changed

17 files changed

+1011
-106
lines changed

.github/workflows/build_starc_linux.yml

Lines changed: 124 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
if: github.event_name == 'pull_request'
3636
shell: bash
3737
run: |
38-
git submodule update --init --recursive src/3rd_party/qbreakpad/ src/3rd_party/pdfhummus/ src/3rd_party/pdftextextraction/
38+
git submodule update --init --recursive src/3rd_party/pdfhummus/ src/3rd_party/pdftextextraction/
3939
4040
- name: Add info about dev build to the env
4141
shell: bash
@@ -52,7 +52,14 @@ jobs:
5252
shell: bash
5353
run: |
5454
sudo apt update
55-
sudo apt install libgstreamer-plugins-base1.0-0 cmake make pkg-config libx11-dev xcb libx11-xcb-dev libxkbcommon-x11-0 libxkbcommon-dev libgtk-3-dev sassc libfuse2
55+
sudo apt install libgstreamer-plugins-base1.0-0 cmake make pkg-config libx11-dev xcb libx11-xcb-dev libxkbcommon-x11-0 libxkbcommon-dev libgtk-3-dev sassc libfuse2 libcurl4-openssl-dev zlib1g-dev
56+
57+
- name: Build crashpad
58+
shell: bash
59+
run: |
60+
cd build
61+
chmod +x ./build_crashpad.sh
62+
./build_crashpad.sh
5663
5764
- name: Run QMake
5865
shell: bash
@@ -66,6 +73,59 @@ jobs:
6673
cd src
6774
make -j$(nproc)
6875
76+
- name: Setup Rust
77+
run: |
78+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
79+
source $HOME/.cargo/env
80+
echo "PATH=$PATH:$HOME/.cargo/bin" >> $GITHUB_ENV
81+
82+
- name: Verify Rust
83+
run: |
84+
source $HOME/.cargo/env
85+
cargo --version
86+
rustc --version
87+
88+
- name: Install dependencies for Node.js
89+
run: |
90+
sudo apt-get update
91+
sudo apt-get install -y python3
92+
npm install -g @mapbox/node-pre-gyp cargo-cp-artifact
93+
94+
- name: Setup Node.js
95+
uses: actions/setup-node@v4
96+
with:
97+
node-version: '22'
98+
99+
- name: Install node-dump-syms
100+
run: |
101+
npm i -g node-dump-syms
102+
103+
- name: Upload Symbols for .so files
104+
uses: BugSplat-Git/symbol-upload@main
105+
with:
106+
username: "${{ secrets.BUGSPLAT_USER }}"
107+
password: "${{ secrets.BUGSPLAT_PASSWORD }}"
108+
database: "${{ secrets.BUGSPLAT_DATABASE }}"
109+
application: "starcapp-linux"
110+
version: "${{ env.APP_VERSION }}"
111+
files: "**/*.so"
112+
directory: "src/_build"
113+
node-version: "22"
114+
dumpSyms: true
115+
116+
- name: Upload Symbols for starcapp
117+
uses: BugSplat-Git/symbol-upload@main
118+
with:
119+
username: "${{ secrets.BUGSPLAT_USER }}"
120+
password: "${{ secrets.BUGSPLAT_PASSWORD }}"
121+
database: "${{ secrets.BUGSPLAT_DATABASE }}"
122+
application: "starcapp-linux"
123+
version: "${{ env.APP_VERSION }}"
124+
files: "starcapp"
125+
directory: "src/_build"
126+
node-version: "22"
127+
dumpSyms: true
128+
69129
- name: Make AppImage
70130
shell: bash
71131
run: |
@@ -112,7 +172,7 @@ jobs:
112172
if: github.event_name == 'pull_request'
113173
shell: bash
114174
run: |
115-
git submodule update --init --recursive src/3rd_party/qbreakpad/ src/3rd_party/pdfhummus/ src/3rd_party/pdftextextraction/
175+
git submodule update --init --recursive src/3rd_party/pdfhummus/ src/3rd_party/pdftextextraction/
116176
117177
- name: Add info about dev build to the env
118178
shell: bash
@@ -130,7 +190,14 @@ jobs:
130190
shell: bash
131191
run: |
132192
sudo apt update
133-
sudo apt install libgstreamer-plugins-base1.0-0 cmake make pkg-config libx11-dev xcb libx11-xcb-dev libxkbcommon-x11-0 libxkbcommon-dev libgtk-3-dev sassc libfuse2 libxcb-cursor0
193+
sudo apt install libgstreamer-plugins-base1.0-0 cmake make pkg-config libx11-dev xcb libx11-xcb-dev libxkbcommon-x11-0 libxkbcommon-dev libgtk-3-dev sassc libfuse2 libxcb-cursor0 libcurl4-openssl-dev zlib1g-dev
194+
195+
- name: Build crashpad
196+
shell: bash
197+
run: |
198+
cd build
199+
chmod +x ./build_crashpad.sh
200+
./build_crashpad.sh
134201
135202
- name: Run QMake
136203
shell: bash
@@ -144,6 +211,59 @@ jobs:
144211
cd src
145212
make -j$(nproc)
146213
214+
- name: Setup Rust
215+
run: |
216+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
217+
source $HOME/.cargo/env
218+
echo "PATH=$PATH:$HOME/.cargo/bin" >> $GITHUB_ENV
219+
220+
- name: Verify Rust
221+
run: |
222+
source $HOME/.cargo/env
223+
cargo --version
224+
rustc --version
225+
226+
- name: Install dependencies for Node.js
227+
run: |
228+
sudo apt-get update
229+
sudo apt-get install -y python3
230+
npm install -g @mapbox/node-pre-gyp cargo-cp-artifact
231+
232+
- name: Setup Node.js
233+
uses: actions/setup-node@v4
234+
with:
235+
node-version: '22'
236+
237+
- name: Install node-dump-syms
238+
run: |
239+
npm i -g node-dump-syms
240+
241+
- name: Upload Symbols for .so files
242+
uses: BugSplat-Git/symbol-upload@main
243+
with:
244+
username: "${{ secrets.BUGSPLAT_USER }}"
245+
password: "${{ secrets.BUGSPLAT_PASSWORD }}"
246+
database: "${{ secrets.BUGSPLAT_DATABASE }}"
247+
application: "starcapp-linux"
248+
version: "${{ env.APP_VERSION }}"
249+
files: "**/*.so"
250+
directory: "src/_build"
251+
node-version: "22"
252+
dumpSyms: true
253+
254+
- name: Upload Symbols for starcapp
255+
uses: BugSplat-Git/symbol-upload@main
256+
with:
257+
username: "${{ secrets.BUGSPLAT_USER }}"
258+
password: "${{ secrets.BUGSPLAT_PASSWORD }}"
259+
database: "${{ secrets.BUGSPLAT_DATABASE }}"
260+
application: "starcapp-linux"
261+
version: "${{ env.APP_VERSION }}"
262+
files: "starcapp"
263+
directory: "src/_build"
264+
node-version: "22"
265+
dumpSyms: true
266+
147267
- name: Make AppImage
148268
shell: bash
149269
run: |

.github/workflows/build_starc_mac.yml

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
if: github.event_name == 'pull_request'
3636
shell: bash
3737
run: |
38-
git submodule update --init --recursive src/3rd_party/qbreakpad/ src/3rd_party/pdfhummus/ src/3rd_party/pdftextextraction/
38+
git submodule update --init --recursive src/3rd_party/pdfhummus/ src/3rd_party/pdftextextraction/
3939
4040
- name: Add info about dev build to the env
4141
shell: bash
@@ -48,6 +48,13 @@ jobs:
4848
version: 5.15.2
4949
target: desktop
5050

51+
- name: Build crashpad
52+
shell: bash
53+
run: |
54+
cd build
55+
chmod +x ./build_crashpad.sh
56+
./build_crashpad.sh
57+
5158
- name: Run QMake
5259
shell: bash
5360
run: |
@@ -60,6 +67,21 @@ jobs:
6067
cd src
6168
make -j4
6269
70+
- name: Upload debug symbols
71+
uses: BugSplat-Git/symbol-upload@main
72+
with:
73+
username: "${{ secrets.BUGSPLAT_USER }}"
74+
password: "${{ secrets.BUGSPLAT_PASSWORD }}"
75+
database: "${{ secrets.BUGSPLAT_DATABASE }}"
76+
application: "starcapp-mac"
77+
version: "${{ env.APP_VERSION }}"
78+
files: "**/*.dSYM"
79+
directory: "src/_build"
80+
node-version: "22"
81+
dumpSyms: false
82+
env:
83+
DEBUG: true
84+
6385
- name: Make dmg image
6486
shell: bash
6587
run: |
@@ -115,7 +137,7 @@ jobs:
115137
if: github.event_name == 'pull_request'
116138
shell: bash
117139
run: |
118-
git submodule update --init --recursive src/3rd_party/qbreakpad/ src/3rd_party/pdfhummus/ src/3rd_party/pdftextextraction/
140+
git submodule update --init --recursive src/3rd_party/pdfhummus/ src/3rd_party/pdftextextraction/
119141
120142
- name: Add info about dev build to the env
121143
shell: bash
@@ -129,18 +151,38 @@ jobs:
129151
target: desktop
130152
modules: 'qt5compat qtmultimedia qtspeech qtwebsockets'
131153

154+
- name: Build crashpad
155+
shell: bash
156+
run: |
157+
cd build
158+
chmod +x ./build_crashpad.sh
159+
./build_crashpad.sh -u
160+
132161
- name: Run QMake
133162
shell: bash
134163
run: |
135164
cd src
136-
qmake starc.pro QMAKE_APPLE_DEVICE_ARCHS="x86_64 arm64" DEFINES+="DEV_BUILD=$DEV_BUILD"
165+
qmake starc.pro QMAKE_APPLE_DEVICE_ARCHS="x86_64 arm64" CRASHPAD_ARCH=universal DEFINES+="DEV_BUILD=$DEV_BUILD"
137166
138167
- name: Build
139168
shell: bash
140169
run: |
141170
cd src
142171
make -j4
143172
173+
- name: Upload debug symbols
174+
uses: BugSplat-Git/symbol-upload@main
175+
with:
176+
username: "${{ secrets.BUGSPLAT_USER }}"
177+
password: "${{ secrets.BUGSPLAT_PASSWORD }}"
178+
database: "${{ secrets.BUGSPLAT_DATABASE }}"
179+
application: "starcapp-mac"
180+
version: "${{ env.APP_VERSION }}"
181+
files: "**/*.dSYM"
182+
directory: "src/_build"
183+
node-version: "22"
184+
dumpSyms: false
185+
144186
- name: Make dmg image
145187
shell: bash
146188
run: |

0 commit comments

Comments
 (0)