Skip to content

Commit cbb0cea

Browse files
committed
2 parents c4be78d + 9a34c22 commit cbb0cea

File tree

987 files changed

+55548
-11738
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

987 files changed

+55548
-11738
lines changed

.clang-tidy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Checks: [
3434
-clang-analyzer-core.DivideZero,
3535
-clang-analyzer-core.NonNullParamChecker,
3636
-clang-analyzer-core.UndefinedBinaryOperatorResult,
37+
-clang-analyzer-cplusplus.InnerPointer,
3738
-clang-analyzer-cplusplus.NewDelete,
3839
# We often use enums as bitsets and do things like `enum::A | enum::B`
3940
# which is explicitly unsupported by this check, and it is officially recommended to disable

.github/pull_request_template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- HOW TO USE: Under each "#### Heading" below, enter information relevant to your pull request.
22
You must have the below headings. Comments like this may be safely removed, if you want.
33
4-
If you are opening this pull request from Github's web interface, you can use the 'preview' button to see what your pull request will look like to others.
4+
If you are opening this pull request from GitHub's web interface, you can use the 'preview' button to see what your pull request will look like to others.
55
66
Guidelines for pull requests:
77
-Keep your changes limited to one specific issue or change, plus the bare minimum related work to make that happen.
@@ -29,7 +29,7 @@ https://github.com/CleverRaven/Cataclysm-DDA/blob/master/data/changelog.txt -->
2929

3030
<!-- With a few sentences, describe your reasons for making this change.
3131
If it relates to an existing issue, you can link it with a # followed by the GitHub issue number, like #1234.
32-
When you submit a pull request that completely resolves an issue, use [Github's closing keywords](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue)
32+
When you submit a pull request that completely resolves an issue, use [GitHub's closing keywords](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue)
3333
to automatically close the issue once your pull request is merged.
3434
If there is no related issue, explain here what issue, feature, or other concern you are addressing. If this is a bugfix, include steps to reproduce the original bug, so your fix can be verified. -->
3535

.github/reviewers.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ files:
3131
- Light-Wave
3232
'data/mods/MA/**':
3333
- ZhilkinSerg
34+
'data/mods/Sky_Island/**':
35+
- gettingusedto
3436
'data/mods/Tamable_Wildlife/**':
3537
- Termineitor244
3638
'data/mods/Limb_WIP/**':

.github/workflows/build-translations.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
echo "No TX_TOKEN secret set in this repo, not pulling translations from Transifex"
3838
exit 1
3939
fi
40-
tx pull -a --force
40+
tx pull -a --force -w 2
4141
4242
- name: Discard invalid translations
4343
run: ./lang/discard_invalid_po.sh

.github/workflows/check-translation.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/greet-first-time-comment.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,18 @@ jobs:
2222
run: |
2323
commenter="${{ github.event.comment.user.login }}"
2424
echo "Debug: Checking comment counts for... $commenter"
25-
comment_count=$(gh search prs --owner=CleverRaven --repo=Cataclysm-DDA --commenter $commenter --json id | jq 'length')
25+
comment_count_all_PR=$(gh search prs --repo=CleverRaven/Cataclysm-DDA --commenter $commenter --json id | jq 'length')
26+
num_PRs_authored=$(gh search prs --repo=CleverRaven/Cataclysm-DDA --author $commenter --json id | jq 'length')
27+
28+
num_times_commented=$(gh pr view $PR_NUMBER --json comments --jq "[.comments.[].author.login | match(\"$commenter\")] | length")
2629
27-
echo "Debug: $commenter with $comment_count total comments, including checked comment."
28-
echo "comment_count=$comment_count" >> $GITHUB_OUTPUT
30+
echo "Debug: $commenter with $comment_count_all_PR PRs commented on, including checked comment. PR contains $num_times_commented comments from them. They have authored $num_PRs_authored PRs in CleverRaven."
31+
echo "comment_count_all_PR=$comment_count_all_PR" >> $GITHUB_OUTPUT
32+
echo "num_times_commented=$num_times_commented" >> $GITHUB_OUTPUT
33+
echo "num_PRs_authored=$num_PRs_authored" >> $GITHUB_OUTPUT
2934
3035
- name: Greet commenters with no previous comments
31-
if: steps.pr-comment-check.outputs.comment_count == 1
36+
if: steps.pr-comment-check.outputs.comment_count_all_PR == 1 && steps.pr-comment-check.outputs.num_times_commented == 1 && steps.pr-comment-check.outputs.num_PRs_authored == 0
3237
run: |
3338
# I have no earthly idea how to pass the commenter on from the previous run (I have tried), so let's just re-acquire it.
3439
commenter_name="${{ github.event.comment.user.login }}"

.github/workflows/matrix.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,15 @@ jobs:
224224
}}
225225
SKIP_TESTS: ${{ fromJSON(needs.matrix-variables.outputs.skip_tests) || (matrix.android != '') }}
226226
steps:
227-
- name: Maximize build space
227+
- name: Maximize build space (ubuntu)
228228
if: ${{ runner.os == 'Linux' }}
229229
uses: AdityaGarg8/remove-unwanted-software@v4.1
230230
with:
231231
remove-android: ${{ matrix.android == '' }}
232+
- name: Maximize build space (mac)
233+
if: ${{ runner.os == 'macos' && matrix.android == '' }}
234+
run: |
235+
sudo rm -rf $ANDROID_HOME
232236
- name: checkout repository
233237
if: ${{ env.SKIP == 'false' }}
234238
uses: actions/checkout@v4
@@ -290,7 +294,7 @@ jobs:
290294
ccache-master-${{ matrix.ccache_key }}--
291295
- uses: ammaraskar/gcc-problem-matcher@master
292296

293-
- name: Set up JDK 8 (android)
297+
- name: Set up JDK (android)
294298
if: runner.os == 'Linux' && matrix.android != 'none'
295299
uses: actions/setup-java@v4
296300
with:

.github/workflows/push-translation-template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
if: >
1919
${{ github.event.workflow_run.event == 'push' &&
2020
github.event.workflow_run.conclusion == 'success' &&
21-
github.event.workflow_run.status == 'success' &&
21+
( github.event.workflow_run.status == 'success' || github.event.workflow_run.status == 'completed' ) &&
2222
github.repository == 'CleverRaven/Cataclysm-DDA' }}
2323
steps:
2424
- name: "Install gettext tools"

.github/workflows/release.yml

Lines changed: 6 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ jobs:
7070
artifact: windows-with-graphics-x64
7171
arch: x64
7272
os: windows-2022
73-
mxe: none
7473
ext: zip
7574
content: application/zip
7675
tiles: 1
@@ -79,14 +78,12 @@ jobs:
7978
artifact: windows-with-graphics-and-sounds-x64
8079
arch: x64
8180
os: windows-2022
82-
mxe: none
8381
ext: zip
8482
content: application/zip
8583
tiles: 1
8684
sound: 1
8785
- name: Linux Tiles x64
8886
os: ubuntu-22.04
89-
mxe: none
9087
android: none
9188
libbacktrace: 1
9289
tiles: 1
@@ -96,7 +93,6 @@ jobs:
9693
content: application/gzip
9794
- name: Linux Tiles Sounds x64
9895
os: ubuntu-22.04
99-
mxe: none
10096
android: none
10197
libbacktrace: 1
10298
tiles: 1
@@ -106,7 +102,6 @@ jobs:
106102
content: application/gzip
107103
- name: Linux Curses x64
108104
os: ubuntu-22.04
109-
mxe: none
110105
android: none
111106
libbacktrace: 1
112107
tiles: 0
@@ -116,39 +111,34 @@ jobs:
116111
content: application/gzip
117112
- name: macOS Curses Universal Binary (x64 and arm64)
118113
os: macos-15
119-
mxe: none
120114
tiles: 0
121115
sound: 0
122116
artifact: osx-terminal-only-universal
123117
ext: dmg
124118
content: application/x-apple-diskimage
125119
- name: macOS Tiles Universal Binary (x64 and arm64)
126120
os: macos-15
127-
mxe: none
128121
tiles: 1
129122
sound: 0
130123
artifact: osx-with-graphics-universal
131124
ext: dmg
132125
content: application/x-apple-diskimage
133126
- name: Android x64
134127
os: ubuntu-latest
135-
mxe: none
136128
tiles: 1
137129
android: arm64
138130
artifact: android-x64
139131
ext: apk
140132
content: application/apk
141133
- name: Android x32
142134
os: ubuntu-latest
143-
mxe: none
144135
tiles: 1
145136
android: arm32
146137
artifact: android-x32
147138
ext: apk
148139
content: application/apk
149140
#- name: WebAssembly Bundle
150141
# os: ubuntu-latest
151-
# mxe: none
152142
# artifact: wasm
153143
# ext: zip
154144
# content: application/zip
@@ -180,12 +170,6 @@ jobs:
180170
uses: actions/download-artifact@v4
181171
with:
182172
name: translations
183-
- name: Install dependencies (windows msvc) (0/4)
184-
if: runner.os == 'Windows'
185-
uses: lukka/get-cmake@latest
186-
with:
187-
# 4.0.0 has issues compiling old packages in vcpkg
188-
cmakeVersion: 3.31.6
189173
- name: Install dependencies (windows msvc) (1/4)
190174
if: runner.os == 'Windows'
191175
uses: microsoft/setup-msbuild@v2
@@ -208,22 +192,8 @@ jobs:
208192
install: >-
209193
gettext
210194
make
211-
- name: Install dependencies (windows mxe)
212-
if: matrix.mxe != 'none'
213-
run: |
214-
sudo apt install gettext
215-
- name: Install MXE
216-
if: matrix.mxe != 'none'
217-
run: |
218-
curl -L -o mxe-${{ matrix.mxe }}.tar.xz https://github.com/BrettDong/MXE-GCC/releases/download/mxe-sdl-2-0-20/mxe-${{ matrix.mxe }}.tar.xz
219-
curl -L -o mxe-${{ matrix.mxe }}.tar.xz.sha256 https://github.com/BrettDong/MXE-GCC/releases/download/mxe-sdl-2-0-20/mxe-${{ matrix.mxe }}.tar.xz.sha256
220-
shasum -a 256 -c ./mxe-${{ matrix.mxe }}.tar.xz.sha256
221-
sudo tar xJf mxe-${{ matrix.mxe }}.tar.xz -C /opt
222-
curl -L -o SDL2-devel-2.26.2-mingw.tar.gz https://github.com/libsdl-org/SDL/releases/download/release-2.26.2/SDL2-devel-2.26.2-mingw.tar.gz
223-
shasum -a 256 -c ./build-scripts/SDL2-devel-2.26.2-mingw.tar.gz.sha256
224-
sudo tar -xzf SDL2-devel-2.26.2-mingw.tar.gz -C /opt/mxe/usr/${{ matrix.mxe }}-w64-mingw32.static.gcc12 --strip-components=2 SDL2-2.26.2/${{ matrix.mxe }}-w64-mingw32
225195
- name: Install dependencies (Linux)
226-
if: runner.os == 'Linux' && matrix.mxe == 'none' && matrix.android == 'none' && !matrix.wasm
196+
if: runner.os == 'Linux' && matrix.android == 'none' && !matrix.wasm
227197
run: |
228198
sudo apt-get update
229199
sudo apt-get install libsdl2-dev
@@ -285,7 +255,7 @@ jobs:
285255
cp LICENSE ${{ github.workspace }}/LICENSE-libbacktrace.txt
286256
sudo make install
287257
- name: Build CDDA (linux)
288-
if: runner.os == 'Linux' && matrix.mxe == 'none' && matrix.android == 'none' && !matrix.wasm
258+
if: runner.os == 'Linux' && matrix.android == 'none' && !matrix.wasm
289259
run: |
290260
make -j$((`nproc`+0)) TILES=${{ matrix.tiles }} SOUND=${{ matrix.tiles }} RELEASE=1 LOCALIZE=1 LANGUAGES=all BACKTRACE=1 LIBBACKTRACE=${{ matrix.libbacktrace }} WARN_STALE_DATA=1 PCH=0 bindist
291261
mv cataclysmdda-0.J.tar.gz cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.tar.gz
@@ -295,13 +265,6 @@ jobs:
295265
./build-scripts/build-emscripten.sh
296266
./build-scripts/prepare-web.sh
297267
(cd build && zip ../cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.${{ matrix.ext }} *)
298-
- name: Build CDDA (windows mxe)
299-
if: matrix.mxe != 'none'
300-
env:
301-
PLATFORM: /opt/mxe/usr/bin/${{ matrix.mxe }}-w64-mingw32.static.gcc12-
302-
run: |
303-
make -j$((`nproc`+0)) CROSS="${PLATFORM}" TILES=1 SOUND=1 RELEASE=1 LOCALIZE=1 LANGUAGES=all BACKTRACE=1 LIBBACKTRACE=${{ matrix.libbacktrace }} WARN_STALE_DATA=1 PCH=0 bindist
304-
mv cataclysmdda-0.J.zip cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.zip
305268
- name: Build CDDA (windows msvc)
306269
if: runner.os == 'Windows'
307270
env:
@@ -318,19 +281,19 @@ jobs:
318281
run: |
319282
make -j3 TILES=${{ matrix.tiles }} SOUND=${{ matrix.tiles }} RELEASE=1 LOCALIZE=1 LANGUAGES=all BACKTRACE=0 PCH=0 USE_HOME_DIR=1 FRAMEWORK=1 UNIVERSAL_BINARY=1 WARN_STALE_DATA=1 dmgdist
320283
mv Cataclysm.dmg cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.dmg
321-
- name: Set up JDK 8 (android)
322-
if: runner.os == 'Linux' && matrix.android != 'none' && matrix.mxe == 'none'
284+
- name: Set up JDK (android)
285+
if: runner.os == 'Linux' && matrix.android != 'none'
323286
uses: actions/setup-java@v4
324287
with:
325288
java-version: '11'
326289
distribution: 'adopt'
327290
- name: Setup Build and Dependencies (android)
328-
if: runner.os == 'Linux' && matrix.android != 'none' && matrix.mxe == 'none'
291+
if: runner.os == 'Linux' && matrix.android != 'none'
329292
run: |
330293
sudo apt-get update
331294
sudo apt-get install gettext
332295
- name: Build CDDA (android)
333-
if: runner.os == 'Linux' && matrix.android != 'none' && matrix.mxe == 'none'
296+
if: runner.os == 'Linux' && matrix.android != 'none'
334297
working-directory: ./android
335298
run: |
336299
echo "${{ secrets.KEYSTORE }}" > release.keystore.asc

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
/bindist/
1515
/build/
1616
/build-start-time
17+
/ccache/
1718
/cache/
1819
/cmake-build-debug/
1920
/config/

0 commit comments

Comments
 (0)