Skip to content

Commit dc5e76f

Browse files
authored
Merge pull request #87 from Desdaemon/staging
Merge with upstream
2 parents b998167 + 9c0d6a2 commit dc5e76f

186 files changed

Lines changed: 4316 additions & 10469 deletions

File tree

Some content is hidden

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

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ insert_final_newline = true
1111
indent_style = space
1212
indent_size = 4
1313

14-
[*.{sh,rb,js,yml,yaml,adoc}]
14+
[{*.{sh,rb,js,yml,yaml,adoc},configure}]
1515
indent_style = space
1616
indent_size = 2
1717

.gitattributes

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,30 @@
66
*.py text
77
*.rb text
88
*.sh text
9-
*.ac text
10-
*.am text
9+
*.bat text eol=crlf
1110

11+
# external sources
1212
tests/doctest.h -diff linguist-vendored
13-
builds/autoconf/m4/ax_*.m4 -diff linguist-vendored
1413
src/external/* -diff linguist-vendored
1514
src/midiprogram.h -diff linguist-vendored
1615
src/midisequencer.* -diff linguist-vendored
1716
src/midisynth.* -diff linguist-vendored
1817
CMakePresets.json -diff linguist-generated
19-
builds/android/app/src/main/java/org/libsdl/app/*.java -diff linguist-vendored
20-
builds/android/app/src/main/java/org/libsdl/app/SDLActivity.java diff
2118
src/generated/* -diff linguist-generated
19+
20+
.gitattributes export-ignore
21+
.gitignore export-ignore
22+
/.github/ export-ignore
23+
/.tx/ export-ignore
24+
.editorconfig export-ignore
25+
/builds/cmake/.git-hash export-subst
26+
27+
#TODO? .gitmodules export-ignore
28+
#TODO? /builds/libretro/ export-ignore
29+
30+
#TODO: Android is usually built from git, but maybe keep it (e.g. f-droid)?
31+
/builds/android/ export-ignore
32+
/builds/flatpak/ export-ignore
33+
/builds/snap/ export-ignore
34+
/builds/release-helper.sh export-ignore
35+
/builds/make-dist.sh export-ignore
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"config": {
3+
// MD012/no-multiple-blanks : Allow 2 consecutive blank lines
4+
"no-multiple-blanks": {
5+
"maximum": 2
6+
}
7+
}
8+
}

.github/workflows/compile-test.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: Compile Test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
defaults:
13+
run:
14+
shell: bash
15+
16+
jobs:
17+
check:
18+
name: check
19+
if: github.repository == 'ynoproject/ynoengine'
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Install dependencies
23+
run: |
24+
sudo apt-get update
25+
sudo apt-get install -yqq --no-install-recommends --no-install-suggests \
26+
build-essential cmake ninja-build git ca-certificates ccache
27+
sudo pip3 install meson
28+
29+
- uses: actions/checkout@v6
30+
- name: Checkout buildscripts
31+
uses: actions/checkout@v6
32+
with:
33+
repository: EasyRPG/buildscripts
34+
path: buildscripts
35+
36+
- name: Get buildscripts commit hash
37+
id: buildscripts-hash
38+
working-directory: buildscripts
39+
run: |
40+
echo "hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
41+
42+
- name: Cache Emscripten toolchain and libraries
43+
id: cache
44+
uses: actions/cache@v5
45+
with:
46+
path: |
47+
buildscripts/emscripten/emsdk-portable
48+
buildscripts/emscripten/bin
49+
buildscripts/emscripten/lib
50+
buildscripts/emscripten/include
51+
key: easyrpg-emscripten-${{ steps.buildscripts-hash.outputs.hash }}-${{ runner.os }}
52+
restore-keys: |
53+
easyrpg-emscripten-${{ steps.buildscripts-hash.outputs.hash }}-
54+
easyrpg-emscripten-
55+
56+
- name: Install Player dependencies
57+
if: steps.cache.outputs.cache-hit != 'true'
58+
run: bash 0_build_everything.sh
59+
working-directory: buildscripts/emscripten
60+
env:
61+
BUILD_LIBLCF: "1"
62+
63+
- run: cmake --preset yno-simd-release
64+
env:
65+
EASYRPG_BUILDSCRIPTS: "${{ github.workspace }}/buildscripts"
66+
- run: cmake --build --preset yno-simd-release
67+
68+
- run: cmake --preset yno-release
69+
env:
70+
EASYRPG_BUILDSCRIPTS: "${{ github.workspace }}/buildscripts"
71+
- run: cmake --build --preset yno-release
72+
73+
- uses: actions/upload-artifact@v4
74+
with:
75+
name: ynoengine-wasm
76+
path: |
77+
build/yno-simd-release/ynoengine-simd.*
78+
build/yno-release/ynoengine.*
79+
if-no-files-found: warn

.github/workflows/linter.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ on:
77
jobs:
88
lint:
99
name: YAML, CMake & Markdown
10+
if: false
1011
runs-on: ubuntu-latest
1112
steps:
1213
- name: Clone Repository
13-
uses: actions/checkout@v4
14+
uses: actions/checkout@v6
1415
with:
1516
fetch-depth: 0
1617

@@ -19,7 +20,7 @@ jobs:
1920
pip install yamllint
2021
pip install cmakelint
2122
22-
- uses: tj-actions/changed-files@v46
23+
- uses: tj-actions/changed-files@v47
2324
if: '!cancelled()'
2425
id: changed-files-yaml
2526
with:
@@ -33,7 +34,7 @@ jobs:
3334
${{ steps.changed-files-yaml.outputs.all_changed_files }}
3435
# we often have extra long lines, so relaxing the check (from 80)
3536
36-
- uses: tj-actions/changed-files@v46
37+
- uses: tj-actions/changed-files@v47
3738
if: '!cancelled()'
3839
id: changed-files-cmake
3940
with:
@@ -48,15 +49,16 @@ jobs:
4849
# we often have extra long lines, so relaxing the check (from 80)
4950
# also do not warn about tabstops
5051
51-
- uses: tj-actions/changed-files@v46
52+
- uses: tj-actions/changed-files@v47
5253
if: '!cancelled()'
5354
id: changed-files-md
5455
with:
5556
files: '**/*.md'
5657
separator: ","
5758
- name: Lint Markdown files
5859
if: steps.changed-files-md.outputs.any_changed == 'true'
59-
uses: DavidAnson/markdownlint-cli2-action@v20
60+
uses: DavidAnson/markdownlint-cli2-action@v23
6061
with:
62+
config: '.github/config.markdownlint-cli2.jsonc'
6163
globs: ${{ steps.changed-files-md.outputs.all_changed_files }}
6264
separator: ","

.github/workflows/pr_labels.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55

66
jobs:
77
update:
8+
if: false
89
permissions:
910
contents: read
1011
pull-requests: write
@@ -13,15 +14,15 @@ jobs:
1314

1415
steps:
1516
- name: Clone repository
16-
uses: actions/checkout@v4
17+
uses: actions/checkout@v6
1718
with:
1819
# pull_request_target is run under forks, use main repo source
1920
fetch-depth: 0
2021
repository: EasyRPG/Player
2122
ref: master
2223

2324
- name: Update labels
24-
uses: actions/labeler@v5
25+
uses: actions/labeler@v6
2526
with:
2627
sync-labels: true
2728
dot: true

.github/workflows/stable-compilation.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ defaults:
1919

2020
jobs:
2121
docker:
22+
if: false
2223
name: ${{ matrix.image }} (${{ matrix.os.arch }})
2324
runs-on: ${{ matrix.os.name }}
2425
container:
@@ -61,10 +62,10 @@ jobs:
6162
libdrm-dev libgbm-dev # only needed for sdl2 on debian 11
6263
6364
- name: Clone Repository
64-
uses: actions/checkout@v4
65+
uses: actions/checkout@v6
6566
if: github.event.inputs.git-ref == ''
6667
- name: Clone Repository (with custom ref)
67-
uses: actions/checkout@v4
68+
uses: actions/checkout@v6
6869
if: github.event.inputs.git-ref != ''
6970
with:
7071
ref: ${{ github.event.inputs.git-ref }}
@@ -78,6 +79,7 @@ jobs:
7879
cmake -G Ninja -B build . \
7980
-DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \
8081
-DCMAKE_CXX_FLAGS="-Wall -Wextra -Wdeprecated -fsanitize=address,undefined" \
82+
-DPLAYER_TARGET_PLATFORM=SDL2 \
8183
-DPLAYER_BUILD_LIBLCF=ON -DPLAYER_VERSION_APPEND="$VER"
8284
cmake --build build
8385

.gitignore

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/bin/
2-
/Makefile
31
/easyrpg-player
42
/Player.app
53
*.a
@@ -9,34 +7,8 @@
97
*.orig
108
*.bak
119

12-
# autotools
13-
/autom4te.cache/
14-
/easyrpg-player-*/
15-
/.libs/
16-
.deps/
17-
/_deps
18-
Makefile.in
19-
aclocal.m4
20-
config.h
21-
config.h.in
22-
config.status
23-
configure
24-
libtool
25-
/builds/autoconf/aux/
26-
/builds/autoconf/m4/*.m4
27-
!/builds/autoconf/m4/ax_*.m4
28-
!/builds/autoconf/m4/with_pkg.m4
29-
stamp-h1
30-
.dirstamp
31-
*.la
32-
*.lo
33-
/output
34-
/utils
35-
/directorytree
36-
/.version-append
37-
/.version-git
38-
3910
# cmake
11+
/Makefile
4012
CMakeFiles/
4113
CMakeScripts/
4214
CMakeCache.txt
@@ -89,10 +61,10 @@ build/
8961
# test/run artifacts
9062
easyrpg_log.txt
9163
/*.log
92-
/*.trs
9364
Testing/
9465

9566
# distribution archives
67+
/easyrpg-player-*/
9668
easyrpg-player-*.tar.*
9769
*.zip
9870

@@ -110,13 +82,13 @@ __MACOSX
11082
/RelWithDebInfo/
11183
/*.build/
11284

113-
# legacy
85+
# legacy, used for PLAYER_BUILD_LIBLCF
11486
/lib/liblcf/
115-
.buildconfig
11687

11788
# Android
11889
*.iml
11990
local.properties
91+
*.aar
12092

12193
# libretro
12294
easyrpg_libretro.*
@@ -140,6 +112,10 @@ eboot.bin
140112
*.vpk
141113
*.velf
142114

115+
# ps4
116+
*.prx
117+
*.sprx
118+
143119
# flatpak
144120
/.flatpak-builder
145121

.tx/config

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

0 commit comments

Comments
 (0)