Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport #70957 #73973

Closed
wants to merge 136 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
5d069f2
Update version strings for H-stable branch (#70663)
I-am-Erk Jan 21, 2024
2a2797e
make 0.H release candidates bump gh-page build
kevingranade May 11, 2024
a6d100a
Update matrix build to target 0.H-branch
kevingranade May 11, 2024
d42119c
Update msvc build to target 0.H-branch
kevingranade May 11, 2024
f64e70e
Update pr-validator.yml for 0.H-branch
kevingranade May 11, 2024
2a32cf8
Update release.yml for 0.H-branch
kevingranade May 11, 2024
a5a63f1
Update text-changes-analyzer.yml for 0.H-branch
kevingranade May 11, 2024
88d5597
Update .github/workflows/gh-pages-rebuild.yml
kevingranade May 11, 2024
dfa2790
Update matrix.yml
kevingranade May 11, 2024
46e5630
Update .github/workflows/msvc-full-features.yml
kevingranade May 11, 2024
06c20a0
Merge pull request #73638 from CleverRaven/kevingranade-0.H-automation
Maleclypse May 11, 2024
6b42819
Backport #73632
Procyonae May 11, 2024
cc8e8cb
Merge pull request #73660 from Procyonae/Backport73632
I-am-Erk May 11, 2024
cbac3cf
Fixing an issue where item_pocket::better_pocket causes undefined beh…
Procyonae May 11, 2024
8a34b25
d for debug (keybinding) (#73113) (#73670)
Procyonae May 11, 2024
2371148
Fix int32_t overflow in energy display (#73673)
Procyonae May 11, 2024
813d224
Fix map deserialization error (#71860)
BrettDong Feb 20, 2024
bef2bac
Backport updated release notes generation workflow to 0.H (#73686)
kevingranade May 11, 2024
dd37e8c
Seperate concurrency label for release candidate
kevingranade May 11, 2024
ff383b1
fix second instance of release label
kevingranade May 11, 2024
d567532
Fix MSVC release build translations compilation
akrieger Mar 6, 2024
8791258
Include unistd.h for getpid on MSYS2 (#70769) (#73683)
Procyonae May 11, 2024
456277a
dereference the std optional
kevingranade May 11, 2024
2917cec
fix lamp_oil recipe (#73685)
Procyonae May 11, 2024
9e77385
Merge pull request #73684 from Procyonae/Backport71860
dseguin May 12, 2024
4125db4
make pupating explosion quieter
GuardianDll Apr 27, 2024
5974106
fix pupating nuclar detonation (#73526)
casswedson May 7, 2024
c28518c
NPCs will prioritize wielding ranged weapons when allowed. (#72222)
wwkk222208 Mar 7, 2024
0917c6e
Test for NPCs preferring to wield guns
RenechCDDA Mar 29, 2024
fd6a398
fix (f)ire "draw what" menu repeating same gun
nornagon Feb 7, 2024
9f53ea8
bump version used for archive name to 0.H
kevingranade May 12, 2024
ec74cad
Merge pull request #73704 from Procyonae/Backport73338And73526
kevingranade May 12, 2024
80bedcb
Set rot when all components are rotten (#73705)
Procyonae May 12, 2024
23b1a33
Fixes power grid teleportation, crashes, and other buggy interactions…
Procyonae May 12, 2024
5ea5951
Throw error if no valid recipes despite no loading errors (#73707)
Procyonae May 12, 2024
e66cdad
Merge pull request #73708 from Procyonae/Backport72222And72683
kevingranade May 12, 2024
fdc3dc8
Fix deprecated suffix operator syntax (#70768) (#73709)
Procyonae May 12, 2024
c9741db
Made army and USMC bayonets look like National Guard bayonets (#73710)
Procyonae May 12, 2024
61c1740
add the stuff (#73711)
Procyonae May 12, 2024
58f1225
fix glock 22 uses wrong ammo (#73712)
Procyonae May 12, 2024
8985d54
Add missing translations in some places in GUI (#73715)
Procyonae May 12, 2024
7035df5
Only extract singular enchanment name (#70764) (#73716)
Procyonae May 12, 2024
0227c74
Revert "Test for NPCs preferring to wield guns" (#73720)
Procyonae May 12, 2024
599168e
Merge pull request #73717 from Procyonae/Backport71582
dseguin May 12, 2024
a5a84a4
Optimize allocation patterns in item and elsewhere
Procyonae May 14, 2024
9c0d221
Optimize item::stacks_with for further load time gains
Procyonae May 14, 2024
79aae0b
Check validity of Win32 file names
Procyonae May 14, 2024
0be5a03
. and .. are valid paths (#70770)
Qrox Jan 8, 2024
3eb630d
Extract nested monster attack messages for translation (#70772)
BrettDong Jan 8, 2024
f0c7af1
Fix typo in some monster attack messages (#70775)
BrettDong Jan 8, 2024
ac818d5
Rename cover (#73766)
Procyonae May 14, 2024
13ee2fd
fix health dreams when you are ill (#72881) (#73767)
Procyonae May 14, 2024
6cdad0e
fix lieutenant popup query (#73770)
Procyonae May 14, 2024
e73175f
fix disappearing arrows (#73771)
Procyonae May 14, 2024
42bd923
Merge pull request #73774 from Procyonae/Backport70423And70685
kevingranade May 14, 2024
9f55fd0
Fix new line in crash log when SDL message box cannot be created (#70…
Procyonae May 14, 2024
fd8e73c
Initialize the booleans (#73778)
Procyonae May 14, 2024
b506849
fix too big spiritual books (#73779)
Procyonae May 14, 2024
11e0d8a
Oops. We forgot the error code (#73781)
Procyonae May 14, 2024
b27e93c
Move hobby randomization after set_body() (#73783)
Procyonae May 14, 2024
83554d2
Merge pull request #73775 from Procyonae/Backport70772And70775
kevingranade May 14, 2024
27059e7
Merge pull request #73773 from Procyonae/Backport70589And70770
Maleclypse May 15, 2024
547f311
Extract martial technique condition descriptions for translation
BrettDong Jan 6, 2024
f386f5c
Initialize reset_item_vars
hexagonrecursion Jan 3, 2024
6cced4c
Centralize parsing of flexbuffer file times to avoid rounding issues
akrieger Jan 6, 2024
8451d05
soldering wire -> solder
MNG-cataclysm Jan 11, 2024
c0e73d5
Add check to prevent CBMs from being put on pets (#71068)
PerfectlyInternal May 16, 2024
be27964
Updates the Terminus font
Lumi-Virtual Jan 29, 2024
0c4621f
Draw SDL ASCII lines by default
ZhilkinSerg Feb 6, 2024
3246676
Correctly center the SDL ASCII lines (#71351)
Lumi-Virtual May 16, 2024
ad5b0a4
Translate custom name of monsters placed in mapgen
BrettDong Jan 31, 2024
cb59532
Fixes TCL Security Drone drops (#71157)
Novacat May 16, 2024
dc5eec5
Extract use actions of gun items for translation
BrettDong Jan 29, 2024
965adf9
Extract trap memorial and trigger messages for translation (#71338)
BrettDong May 16, 2024
fd6275e
Merge pull request #73841 from Procyonae/Backport71338
dseguin May 16, 2024
ae56fd9
Merge pull request #73840 from Procyonae/Backport71333
dseguin May 16, 2024
bd1759c
Merge pull request #73839 from Procyonae/Backport71157
dseguin May 16, 2024
3cd91c4
Merge pull request #73838 from Procyonae/Backport71382
dseguin May 16, 2024
3ac4da4
Merge pull request #73837 from Procyonae/Backport71351
dseguin May 16, 2024
1edeb96
Merge pull request #73836 from Procyonae/Backport71330And71573
dseguin May 16, 2024
55bcecc
Merge pull request #73835 from Procyonae/Backport71068
dseguin May 16, 2024
59f0e70
Merge pull request #73834 from Procyonae/Backport70844
dseguin May 16, 2024
ab23bfd
Merge pull request #73833 from Procyonae/Backport70688
dseguin May 16, 2024
b8b8c01
Merge pull request #73832 from Procyonae/Backport70713
dseguin May 16, 2024
46b4be0
Merge pull request #73831 from Procyonae/Backport70695
dseguin May 16, 2024
a2ff085
Extract UI widget clauses text for translation
BrettDong Jan 28, 2024
0a760c4
Update storage.json
Binbagg Apr 6, 2024
27c96d8
Minor exodii tweaks (#70875)
NetSysFire May 16, 2024
e6dacfd
remove chunk charges
PatrikLundell Apr 18, 2024
759a5c7
Merge pull request #70686 from akrieger/jazz_hands
akrieger May 16, 2024
960af36
Merge pull request #72759 from katemonster33/traders_respect_cans
katemonster33 May 16, 2024
05d03e9
refactor f_bulk_trade_accept (#73703)
RenechCDDA May 16, 2024
5f26776
Merge pull request #73847 from Procyonae/Backport71304
Maleclypse May 17, 2024
94de1a8
Merge pull request #73851 from Procyonae/Backport70875
Maleclypse May 17, 2024
3b5b9d7
Merge pull request #73856 from Procyonae/Backport72759And73703
Maleclypse May 17, 2024
f6ecd02
Merge pull request #73854 from Procyonae/Backport70686
Maleclypse May 17, 2024
327aa9f
Merge pull request #73852 from Procyonae/Backport73104
Maleclypse May 17, 2024
c1b6ae5
Merge pull request #70660 from prharvey/hallu_flood_fill
prharvey May 17, 2024
185dd7c
Merge pull request #70687 from prharvey/reachability_fix
prharvey May 17, 2024
2436ca7
Merge pull request #70843 from BrettDong/typo-fix
BrettDong May 17, 2024
9edf8af
Set up proper triggers (#70868)
MNG-cataclysm May 17, 2024
173889e
Provide more info for translators in EoC messages (#71352) (#73848)
Procyonae May 17, 2024
d9a3967
Update entry_tools.json (#73853)
Procyonae May 17, 2024
7d5a1dd
Merge pull request #70639 from prharvey/pathfinding_backport (#73872)
Procyonae May 17, 2024
0853bfc
Merge pull request #71103 from andrei8l/eoc-fix-assassins (#73873)
Procyonae May 17, 2024
b111eb0
Merge pull request #73055 from Kamayana/split_vehicle_part0_fix (#73874)
Procyonae May 17, 2024
2532c69
Merge pull request #73127 from PatrikLundell/fix_egg_stack (#73875)
Procyonae May 17, 2024
30c73fc
Merge pull request #73876 from Procyonae/Backport70660And70687
kevingranade May 17, 2024
393af64
Fix clang-tidy error in map::creature_on_trap() in map.cpp (#73877)
Procyonae May 17, 2024
ebdf121
Prevent disarming integrated weapons (#73882)
Procyonae May 17, 2024
c05db1c
Merge pull request #72780 from RenechCDDA/catch_bad_charges (#73883)
Procyonae May 17, 2024
1da15ac
Merge pull request #73880 from Procyonae/Backport70868
Maleclypse May 17, 2024
062e42e
Merge pull request #73878 from Procyonae/Backport70843
dseguin May 18, 2024
c368315
Merge pull request #73849 from Procyonae/Backport72858
dseguin May 18, 2024
a68ab9a
Add default soundpack to flatpak build (#73863)
AshenColors May 18, 2024
c91732c
Near-infinite loop fix for when crafter cannot continue (fixes #70530…
adamaxis May 18, 2024
107d525
Aftershock: Fix the escape pod sequence (Once and for all?) (#72225)
John-Candlebury May 18, 2024
e538981
Add clang-tidy check for overflow in constructing energy quantity fro…
BrettDong May 18, 2024
d9bb18b
Merge pull request #71380 from BrettDong/translate-eoc
BrettDong May 18, 2024
171e0b9
Merge pull request #71428 from Fris0uman/prof_retcon
Fris0uman May 18, 2024
1baed7e
Merge pull request #71432 from CleverRaven/revert-70469-Misses-Christmas
kevingranade May 18, 2024
5398026
Merge pull request #71449 from Fris0uman/spawn_edda
Fris0uman May 18, 2024
9b1670d
Merge pull request #73898 from Procyonae/Backport71425
Maleclypse May 19, 2024
541f819
Merge pull request #73896 from Procyonae/Backport73820
Maleclypse May 19, 2024
1d6de85
Merge pull request #73900 from Procyonae/Backport71428And71432And71449
dseguin May 19, 2024
d75e3a8
Merge pull request #73899 from Procyonae/Backport71380
dseguin May 19, 2024
f7b2fc9
Merge pull request #73897 from Procyonae/Backport72225
dseguin May 19, 2024
cb5a959
Add t_region_shrub_plains entries
Procyonae May 18, 2024
31e62ff
Merge pull request #71681 from Qrox/translation
Qrox May 19, 2024
11fde3d
Fix erroneous mapgen monster names in non-English games (#71846)
BrettDong May 19, 2024
745fd6d
Update map::place_spawns() to use std::optional<std::string> for mons…
BrettDong May 19, 2024
754bd27
Merge pull request #70743 from alef/67611-visible_items
alef May 19, 2024
92cb438
Merge pull request #73927 from Procyonae/Backport70743
dseguin May 19, 2024
828c13a
Merge pull request #73921 from Procyonae/Backport71681And71846And71861
dseguin May 19, 2024
e8f7249
Merge pull request #73920 from Procyonae/Backport73901
dseguin May 19, 2024
cc096b2
Merge pull request #70957 from Ramza13/fix-peek-vertical
Ramza13 May 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ body:
attributes:
label: Attach save file
description: |
`ESC`Main Menu -> `b`Debug Menu -> `i`Info -> `!`Generate minimized save archive
`ESC`Main Menu -> `d`Debug Menu -> `i`Info -> `!`Generate minimized save archive
placeholder: |
Write N/A if not applicable.

Expand Down Expand Up @@ -69,7 +69,7 @@ body:
attributes:
label: Versions and configuration
description: |
`ESC`Main Menu -> `b`Debug Menu -> `i`Info -> `r`Generate game report
`ESC`Main Menu -> `d`Debug Menu -> `i`Info -> `r`Generate game report
placeholder: |
- OS: [e.g. iOS 8 or Windows 10 or Ubuntu 18.04]
- Game Version: [e.g. d6ec466 (64-bit) ]
Expand Down
16 changes: 7 additions & 9 deletions .github/workflows/matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ name: General build matrix

on:
push:
branches:
- master
branches: [0.H-branch]
pull_request:
branches:
- master
branches: [0.H-branch]
types: [opened, reopened, synchronize, ready_for_review]

# We only care about the latest revision of a PR, so cancel all previous instances.
Expand Down Expand Up @@ -71,9 +69,9 @@ jobs:
steps:
- id: matrix_vars
run: |
echo "fail_fast=$([ "$GITHUB_REF_NAME" = "master" ] && echo false || echo true)" >> $GITHUB_OUTPUT
echo "skip_tests=$([ "$GITHUB_REF_NAME" = "master" ] && echo true || echo false)" >> $GITHUB_OUTPUT
echo "max_parallel=$([ "$GITHUB_REF_NAME" = "master" ] && echo 20 || echo 1)" >> $GITHUB_OUTPUT
echo "fail_fast=$([ "$GITHUB_REF_NAME" = "0.H-branch" ] && echo false || echo true)" >> $GITHUB_OUTPUT
echo "skip_tests=$([ "$GITHUB_REF_NAME" = "0.H-branch" ] && echo true || echo false)" >> $GITHUB_OUTPUT
echo "max_parallel=$( [ "$GITHUB_REF_NAME" = "0.H-branch" ] && echo 20 || echo 1)" >> $GITHUB_OUTPUT
varied_builds:
needs: [ skip-duplicates-code, skip-duplicates-data, matrix-variables ]
strategy:
Expand Down Expand Up @@ -305,7 +303,7 @@ jobs:
# double-dash after compiler is not a typo, it is to disambiguate between g++-<date> and g++-11-<date> for restore key prefix matching
key: ccache-${{ github.ref_name }}-${{ matrix.ccache_key }}--${{ steps.get-vars.outputs.datetime }}
restore-keys: |
ccache-master-${{ matrix.ccache_key }}--
ccache-0.H-${{ matrix.ccache_key }}--
- uses: ammaraskar/gcc-problem-matcher@master
- name: build
if: ${{ env.SKIP == 'false' }}
Expand All @@ -318,7 +316,7 @@ jobs:
ccache -c
ccache --show-stats --verbose
- name: clear ccache on PRs
if: ${{ github.ref_name != 'master' && env.SKIP == 'false' && !failure() && (runner.os == 'Linux' || runner.os == 'macOS') }}
if: ${{ github.ref_name != '0.H-branch' && env.SKIP == 'false' && !failure() && (runner.os == 'Linux' || runner.os == 'macOS') }}
run: |
ccache -C
# TODO: post ccache here, however actions/cache@v2 does not support manual upload step
Expand Down
18 changes: 8 additions & 10 deletions .github/workflows/msvc-full-features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Cataclysm Windows build

on:
push:
branches:
- master
branches: [ 0.H-build ]
paths-ignore:
- 'android/**'
- 'build-data/osx/**'
Expand All @@ -16,8 +15,7 @@ on:
- '!tools/format/**'
- 'utilities/**'
pull_request:
branches:
- master
branches: [ 0.H-build ]
paths-ignore:
- 'android/**'
- 'build-data/osx/**'
Expand Down Expand Up @@ -111,7 +109,7 @@ jobs:
# double-dash after compiler is not a typo, it is to disambiguate between g++-<date> and g++-11-<date> for restore key prefix matching
key: ccache-${{ github.ref_name }}-${{ runner.os }}-msvc--${{ steps.get-vars.outputs.datetime }}
restore-keys: |
ccache-master-${{ runner.os }}-msvc--
ccache-0.H-${{ runner.os }}-msvc--

- name: Configure ccache
run: |
Expand All @@ -138,7 +136,7 @@ jobs:
${{ env.CDDA_CCACHE_PATH }}\ccache.exe -s -v

- name: clear ccache on PRs
if: ${{ github.ref_name != 'master' }}
if: ${{ github.ref_name != '0.H-build' }}
run: |
${{ env.CDDA_CCACHE_PATH }}\ccache.exe -C

Expand All @@ -162,20 +160,20 @@ jobs:
}

- name: Compile .mo files for localization
if: ${{ github.ref_name != 'master' }}
if: ${{ github.ref_name != '0.H-build' }}
run: |
& "C:\msys64\mingw64\bin\mingw32-make" -C lang -j2
mkdir -p ./data/mods/TEST_DATA/lang/mo/ru/LC_MESSAGES -ErrorAction SilentlyContinue
msgfmt -f -o ./data/mods/TEST_DATA/lang/mo/ru/LC_MESSAGES/TEST_DATA.mo ./data/mods/TEST_DATA/lang/po/ru.po

- name: Enable GitHub Actions problem matchers
if: ${{ github.ref_name != 'master' }}
if: ${{ github.ref_name != '0.H-build' }}
run: |
Write-Output "::add-matcher::build-scripts/problem-matchers/catch2.json"
Write-Output "::add-matcher::build-scripts/problem-matchers/debugmsg.json"

- name: Run tests
if: ${{ github.ref_name != 'master' }}
if: ${{ github.ref_name != '0.H-build' }}
run: |
.\Cataclysm-test-vcpkg-static-Release-x64.exe --min-duration 20 --rng-seed time

Expand All @@ -196,7 +194,7 @@ jobs:
shell: bash

- name: Don't upload vcpkg cache on failure or PRs
if: ${{ failure() || cancelled() || github.ref_name != 'master' }}
if: ${{ failure() || cancelled() || github.ref_name != '0.H-build' }}
run: |
echo "RUNVCPKG_NO_CACHE=1" >> $GITHUB_ENV
shell: bash
2 changes: 1 addition & 1 deletion .github/workflows/pr-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: PR Validator
on:
pull_request:
branches:
- master
- 0.H-build
types: [opened, edited, synchronize]
jobs:
validate:
Expand Down
42 changes: 28 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
name: "Experimental Release"
concurrency: release
concurrency: release-candidate
on:
push:
branches:
- master
- 0.H-branch
paths:
- '.github/workflows/release.yml'
- 'android/**'
- 'build-data/**'
- 'build-scripts/generate-release-notes.js'
- 'cataclysm-launcher'
- 'data/**'
- 'doc/**'
Expand Down Expand Up @@ -36,11 +37,16 @@ jobs:
- name: Generate environmental variables
id: generate_env_vars
run: |
echo "tag_name=cdda-experimental-${{ steps.get-timestamp.outputs.time }}" >> $GITHUB_OUTPUT
echo "release_name=Cataclysm-DDA experimental build ${{ steps.get-timestamp.outputs.time }}" >> $GITHUB_OUTPUT
echo "tag_name=cdda-0.H-${{ steps.get-timestamp.outputs.time }}" >> $GITHUB_OUTPUT
echo "release_name=Cataclysm-DDA 0.H release candidate ${{ steps.get-timestamp.outputs.time }}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v3
- name: Generate Release Notes
id: generate-release-notes
run: |
npm install @actions/github
node build-scripts/generate-release-notes.js '${{ secrets.GITHUB_TOKEN }}' '${{ steps.generate_env_vars.outputs.tag_name }}' "$(git log -1 --format='%H')" > notes.txt
- run: |
gh release create ${{ steps.generate_env_vars.outputs.tag_name }} --generate-notes --prerelease --title "${{ steps.generate_env_vars.outputs.release_name }}"
gh release create ${{ steps.generate_env_vars.outputs.tag_name }} --notes-file notes.txt --prerelease --title "${{ steps.generate_env_vars.outputs.release_name }}" --target "$(git log -1 --format='%H')"

builds:
needs: release
Expand Down Expand Up @@ -168,23 +174,31 @@ jobs:
run: |
git clone --depth=1 --shallow-submodules --recurse-submodules https://github.com/Fris0uman/CDDA-Soundpacks '${{ github.workspace }}/CDDA-Soundpacks'
mv '${{ github.workspace }}/CDDA-Soundpacks/sound/CC-Sounds' '${{ github.workspace }}/data/sound'
- name: Install dependencies (windows msvc) (0/3)
- name: Install dependencies (windows msvc) (0/4)
if: runner.os == 'Windows'
uses: lukka/get-cmake@latest
- name: Install dependencies (windows msvc) (1/3)
- name: Install dependencies (windows msvc) (1/4)
if: runner.os == 'Windows'
uses: microsoft/[email protected]
- name: Install dependencies (windows msvc) (2/3)
- name: Install dependencies (windows msvc) (2/4)
if: runner.os == 'Windows'
uses: lukka/run-vcpkg@v11
id: runvcpkg
with:
vcpkgDirectory: '${{ runner.workspace }}/b/vcpkg'
vcpkgGitCommitId: '66444e13a86da7087ee24c342f91801cc6eb9877'
- name: Install dependencies (windows msvc) (3/3)
- name: Install dependencies (windows msvc) (3/4)
if: runner.os == 'Windows'
run: |
vcpkg integrate install --vcpkg-root '${{ runner.workspace }}\b\vcpkg'
- name: Install dependencies (windows msvc) (4/4)
if: runner.os == 'Windows'
uses: msys2/setup-msys2@v2
with:
msystem: mingw64
install: >-
gettext
make
- name: Install dependencies (windows mxe)
if: matrix.mxe != 'none' && matrix.artifact != 'windows-objectcreator-x64'
run: |
Expand Down Expand Up @@ -232,14 +246,14 @@ jobs:
EOL
- name: Compile translations (windows)
if: runner.os == 'Windows'
shell: bash
shell: msys2 {0}
run: |
lang/compile_mo.sh all
- name: Build CDDA (linux)
if: runner.os == 'Linux' && matrix.mxe == 'none' && matrix.android == 'none' && matrix.artifact != 'linux-objectcreator-x64'
run: |
make -j$((`nproc`+0)) TILES=${{ matrix.tiles }} SOUND=${{ matrix.tiles }} RELEASE=1 LOCALIZE=1 LANGUAGES=all BACKTRACE=1 PCH=0 bindist
mv cataclysmdda-0.F.tar.gz cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.tar.gz
mv cataclysmdda-0.H.tar.gz cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.tar.gz
- name: Login to GitHub Container Registry
if: matrix.artifact == 'windows-objectcreator-x64' || matrix.artifact == 'linux-objectcreator-x64'
uses: docker/login-action@v2
Expand Down Expand Up @@ -281,7 +295,7 @@ jobs:
PLATFORM: /opt/mxe/usr/bin/${{ matrix.mxe }}-w64-mingw32.static.gcc12-
run: |
make -j$((`nproc`+0)) CROSS="${PLATFORM}" TILES=1 SOUND=1 RELEASE=1 LOCALIZE=1 LANGUAGES=all BACKTRACE=1 PCH=0 bindist
mv cataclysmdda-0.F.zip cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.zip
mv cataclysmdda-0.H.zip cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.zip
- name: Build CDDA (windows msvc)
if: runner.os == 'Windows'
env:
Expand All @@ -292,7 +306,7 @@ jobs:
run: |
msbuild -m -p:Configuration=Release -p:Platform=${{ matrix.arch }} "-target:Cataclysm-vcpkg-static;JsonFormatter-vcpkg-static" msvc-full-features\Cataclysm-vcpkg-static.sln
.\build-scripts\windist.ps1
mv cataclysmdda-0.F.zip cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.zip
mv cataclysmdda-0.H.zip cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.zip
- name: Build CDDA (osx)
if: runner.os == 'macOS'
run: |
Expand Down Expand Up @@ -333,4 +347,4 @@ jobs:
mv ./app/build/outputs/bundle/experimentalRelease/*.aab ../cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.aab
fi
- run: |
gh release upload cdda-experimental-${{ needs.release.outputs.timestamp }} cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.${{ matrix.ext }}
gh release upload cdda-0.H-${{ needs.release.outputs.timestamp }} cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.${{ matrix.ext }}
2 changes: 1 addition & 1 deletion .github/workflows/text-changes-analyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Text Changes Analyzer
on:
pull_request:
branches:
- master
- 0.H-branch
paths:
- '.github/workflows/text-changes-analyzer.yml'
- 'tools/pot_diff.py'
Expand Down
4 changes: 2 additions & 2 deletions LICENSE-OFL-Terminus-Font.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Copyright (c) 2019 Dimitar Toshkov Zhekov,
Copyright (C) 2020 Dimitar Toshkov Zhekov,
with Reserved Font Name "Terminus Font".

Copyright (c) 2017 tisimst
with Reserved Font Name "Vecterminus"

Copyright (c) 2011 Tilman Blumenbach,
Copyright (c) 2011-2023 Tilman Blumenbach,
with Reserved Font Name "Terminus (TTF)".

This Font Software is licensed under the SIL Open Font License, Version 1.1.
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export CCACHE_COMMENTS=1
# Explicitly let 'char' to be 'signed char' to fix #18776
OTHERS += -fsigned-char

VERSION = 0.F
VERSION = 0.H

TARGET_NAME = cataclysm
TILES_TARGET_NAME = $(TARGET_NAME)-tiles
Expand Down
86 changes: 86 additions & 0 deletions build-scripts/generate-release-notes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
// ./tools/scripts/generate-release-notes.js

const github = require('@actions/github');

/**
* Generates the release notes for a github release.
*
* Arguments:
* 1 - github_token
* 2 - new version
* 3 - commit SHA of new release
*/
const token = process.argv[2];
const version = process.argv[3];
const comittish = process.argv[4];
const repo = process.env.REPOSITORY_NAME
const owner = process.env.GITHUB_REPOSITORY_OWNER

async function main() {
const client = github.getOctokit(token);

const latestReleaseResponse = await client.request(
'GET /repos/{owner}/{repo}/releases',
{
owner: owner,
repo: repo,
headers: {
'X-GitHub-Api-Version': '2022-11-28',
},
}
);

let previousTag = null;
if (latestReleaseResponse.data) {
for (const responseData of latestReleaseResponse.data) {
if (responseData.draft == false && responseData.prerelease == true) {
previousTag = responseData.tag_name;
break;
}
}
}

const response = await client.request(
'POST /repos/{owner}/{repo}/releases/generate-notes',
{
owner: owner,
repo: repo,
tag_name: version,
previous_tag_name: previousTag,
target_commitish: comittish,
headers: {
'X-GitHub-Api-Version': '2022-11-28',
},
}
);

const noteSections = response.data.body?.split('\n\n');
const trimmedSections = [];
const githubNotesMaxCharLength = 125000;
const maxSectionLength = githubNotesMaxCharLength / noteSections.length;
for (let i = 0; i < noteSections.length; i++) {
if (noteSections[i].length > githubNotesMaxCharLength) {
const lastLineIndex =
noteSections[i].substring(0, maxSectionLength).split('\n').length - 1;
const trimmed =
noteSections[i]
.split('\n')
.slice(0, lastLineIndex - 1)
.join('\n') +
`\n... (+${
noteSections[i].split('\n').length - (lastLineIndex + 1)
} others)`;
trimmedSections.push(trimmed);
continue;
}

trimmedSections.push(noteSections[i]);
}

console.log(trimmedSections.join('\n\n'));
}

main().catch((e) => {
console.error(`Failed generating release notes with error: ${e}`);
process.exit(0);
});
2 changes: 1 addition & 1 deletion build-scripts/windist.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ $extras = "data", "doc", "gfx", "LICENSE.txt", "LICENSE-OFL-Terminus-Font.txt",
ForEach ($extra in $extras) {
cp -r $extra bindist
}
Compress-Archive -Force -Path bindist/* -DestinationPath "cataclysmdda-0.F.zip"
Compress-Archive -Force -Path bindist/* -DestinationPath "cataclysmdda-0.H.zip"
Binary file modified data/font/Terminus.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion data/json/effects_on_condition/dream_eocs.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"condition": {
"and": [
{
"or": [
"and": [
{ "not": { "u_has_effect": "pre_common_cold" } },
{ "not": { "u_has_effect": "common_cold" } },
{ "not": { "u_has_effect": "pre_flu" } },
Expand Down
Loading
Loading