Skip to content

Commit f194c1c

Browse files
committed
Improve, Taking in consideration coderabbitai
1 parent 58a2447 commit f194c1c

16 files changed

Lines changed: 47 additions & 90 deletions

.github/workflows/build-mudlet-win.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,9 @@ jobs:
2929
- name: Checkout Mudlet source code
3030
uses: actions/checkout@v5
3131
with:
32-
submodules: true
32+
submodules: recursive
3333
fetch-depth: 0
3434

35-
- name: Init all submodules recursively
36-
run: git submodule update --init --recursive
37-
3835
- name: (Windows) Setup MSYS2
3936
if: matrix.buildname == 'windows64'
4037
uses: msys2/setup-msys2@v2

.github/workflows/build-mudlet.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,9 @@ jobs:
6363
- name: Checkout Mudlet source code
6464
uses: actions/checkout@v5
6565
with:
66-
submodules: true
66+
submodules: recursive
6767
fetch-depth: 0
6868

69-
- name: Init all submodules recursively
70-
run: git submodule update --init --recursive
7169

7270
- name: Install Qt
7371
uses: jurplel/install-qt-action@v4
@@ -204,7 +202,7 @@ jobs:
204202
- name: Set Sentry environment variables
205203
run: |
206204
echo "WITH_SENTRY=yes" >> $GITHUB_ENV
207-
if [ -n "$SENTRY_SEND_DEBUG_SECRET" ]; then
205+
if [ -n "${SENTRY_SEND_DEBUG_SECRET}" ]; then
208206
echo "SENTRY_SEND_DEBUG=1" >> $GITHUB_ENV
209207
else
210208
echo "SENTRY_SEND_DEBUG=0" >> $GITHUB_ENV

.github/workflows/clangtidy-diff-analysis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,13 @@ jobs:
2929
- name: Checkout Mudlet source code
3030
uses: actions/checkout@v5
3131
with:
32-
submodules: true
32+
submodules: recursive
3333
fetch-depth: 0
3434
# https://github.com/ZedThree/clang-tidy-review/issues/10
3535
ref: ${{ github.event.pull_request.head.sha }}
3636
# https://github.community/t/github-actions-are-severely-limited-on-prs/18179/17?u=vadi2
3737
repository: ${{github.event.pull_request.head.repo.full_name}}
3838

39-
- name: Init all submodules recursively
40-
run: git submodule update --init --recursive
41-
4239
- name: (Windows) Install Qt
4340
uses: jurplel/install-qt-action@v4
4441
if: runner.os == 'Windows'

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@ jobs:
4444
# We must fetch at least the immediate parents so that if this is
4545
# a pull request then we can checkout the head.
4646
fetch-depth: 2
47-
submodules: true
48-
49-
- name: Init all submodules recursively
50-
run: git submodule update --init --recursive
47+
submodules: recursive
5148

5249
- name: (Windows) Install Qt
5350
uses: jurplel/install-qt-action@v4

.github/workflows/performance-analysis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ jobs:
2525
uses: actions/checkout@v5
2626
with:
2727
fetch-depth: 0
28-
submodules: true
29-
30-
- name: Init all submodules recursively
31-
run: git submodule update --init --recursive
28+
submodules: recursive
3229

3330
- name: Use CMake 3.30.3
3431
uses: lukka/get-cmake@v3.30.3

.github/workflows/update-3rdparty.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,9 @@ jobs:
101101
- uses: actions/checkout@v5
102102
with:
103103
ref: development
104-
submodules: true
104+
submodules: recursive
105105
fetch-depth: 0
106106

107-
- name: Init all submodules recursively
108-
run: git submodule update --init --recursive
109-
110107
- name: update submodule to latest
111108
run: git submodule update --remote 3rdparty/dblsqd/
112109

@@ -145,12 +142,9 @@ jobs:
145142
- uses: actions/checkout@v5
146143
with:
147144
ref: development
148-
submodules: true
145+
submodules: recursive
149146
fetch-depth: 0
150147

151-
- name: Init all submodules recursively
152-
run: git submodule update --init --recursive
153-
154148
- name: update submodule to latest in branch
155149
run: |
156150
cd 3rdparty/lcf/

.github/workflows/update-en-us-plural.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ jobs:
1616
- uses: actions/checkout@v5
1717
with:
1818
ref: development
19-
submodules: true
20-
21-
- name: Init all submodules recursively
22-
run: git submodule update --init --recursive
19+
submodules: recursive
2320

2421
- name: update plural american english file
2522
uses: Mudlet/lupdate-action@master

.github/workflows/update-translations.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,10 @@ jobs:
1717
- uses: actions/checkout@v5
1818
with:
1919
ref: development
20-
submodules: true
20+
submodules: recursive
2121
fetch-depth: 0
2222
persist-credentials: false
2323

24-
- name: Init all submodules recursively
25-
run: git submodule update --init --recursive
26-
2724
- name: update text for translation
2825
uses: Mudlet/lupdate-action@master
2926
with:

src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ set(mudlet_HDRS
320320
RoomMoveActivationHandler.h
321321
RoomMoveDragHandler.h
322322
SelectionRectangleHandler.h
323+
SentryWrapper.h
323324
TAccessibleConsole.h
324325
TAccessibleTextEdit.h
325326
TAction.h

src/SentryWrapper.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@
2525
#endif
2626

2727
#include <string>
28-
29-
std::string makeExecutablePath(const std::string& dir, const std::string& name);
30-
28+
#include "SentryWrapper.h"
3129

3230
/**
3331
* Initializes Sentry options for crash/error reporting,
@@ -54,7 +52,6 @@ void initSentry()
5452
sentry_options_set_external_crash_reporter_path(options, makeExecutablePath(APP_DIR_PATH, "MudletCrashReporter").c_str());
5553

5654
sentry_init(options);
57-
auto sentryClose = qScopeGuard([] { sentry_close(); });
5855
#endif
5956
}
6057

0 commit comments

Comments
 (0)