Skip to content

Commit 99fe5cb

Browse files
Merge pull request #1 from minetest/master
s
2 parents 8bf1609 + c91182e commit 99fe5cb

File tree

718 files changed

+128934
-122734
lines changed

Some content is hidden

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

718 files changed

+128934
-122734
lines changed

.github/CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Contributions are welcome! Here's how you can help:
1919
developers.
2020

2121
Any Pull Request that isn't a bug fix and isn't covered by
22-
[the roadmap](../doc/direction.md) will be closed within a week unless it
22+
[the roadmap](../doc/direction.md) will be closed within a month unless it
2323
receives a concept approval from a Core Developer. For this reason, it is
2424
recommended that you open an issue for any such pull requests before doing
2525
the work, to avoid disappointment.
@@ -30,7 +30,7 @@ Contributions are welcome! Here's how you can help:
3030

3131
3. Start coding!
3232
- Refer to the
33-
[Lua API](https://github.com/minetest/minetest/blob/master/doc/lua_api.txt),
33+
[Lua API](https://github.com/minetest/minetest/blob/master/doc/lua_api.md),
3434
[Developer Wiki](http://dev.minetest.net/Main_Page) and other
3535
[documentation](https://github.com/minetest/minetest/tree/master/doc).
3636
- Follow the [C/C++](http://dev.minetest.net/Code_style_guidelines) and
@@ -138,7 +138,7 @@ These notes are for those who have push access Minetest (core developers / maint
138138
If a Pull Request is not a bug fix:
139139

140140
* If it matches a goal in [the roadmap](../doc/direction.md), then the PR should
141-
be labelled as "Roadmap" and the goal stated by number in the description.
141+
be labeled as "Roadmap" and the goal stated by number in the description.
142142
* If it doesn't match a goal, then it needs to receive a concept approval within
143143
a week of being opened to remain open. This 1 week deadline does not apply to
144144
PRs opened before the roadmap was adopted; instead, they may remain open or be

.github/workflows/android.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,13 @@ jobs:
4040
with:
4141
name: Minetest-arm64-v8a.apk
4242
path: android/app/build/outputs/apk/release/app-arm64-v8a-release-unsigned.apk
43+
- name: Save x86 artifact
44+
uses: actions/upload-artifact@v3
45+
with:
46+
name: Minetest-x86.apk
47+
path: android/app/build/outputs/apk/release/app-x86-release-unsigned.apk
48+
- name: Save x86_64 artifact
49+
uses: actions/upload-artifact@v3
50+
with:
51+
name: Minetest-x86_64.apk
52+
path: android/app/build/outputs/apk/release/app-x86_64-release-unsigned.apk

.github/workflows/build.yml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,14 @@ on:
2929
- 'Dockerfile'
3030
- '.dockerignore'
3131

32+
env:
33+
MINETEST_POSTGRESQL_CONNECT_STRING: 'host=localhost user=minetest password=minetest dbname=minetest'
34+
3235
jobs:
3336
# Older gcc version (should be close to our minimum supported version)
3437
gcc_5:
3538
runs-on: ubuntu-18.04
39+
if: "false" # FIXME
3640
steps:
3741
- uses: actions/checkout@v3
3842
- name: Install deps
@@ -52,21 +56,21 @@ jobs:
5256
./bin/minetest --run-unittests
5357
5458
# Current gcc version
55-
gcc_10:
56-
runs-on: ubuntu-20.04
59+
gcc_12:
60+
runs-on: ubuntu-22.04
5761
steps:
5862
- uses: actions/checkout@v3
5963
- name: Install deps
6064
run: |
6165
source ./util/ci/common.sh
62-
install_linux_deps g++-10
66+
install_linux_deps g++-12 libluajit-5.1-dev
6367
6468
- name: Build
6569
run: |
6670
./util/ci/build.sh
6771
env:
68-
CC: gcc-10
69-
CXX: g++-10
72+
CC: gcc-12
73+
CXX: g++-12
7074

7175
- name: Test
7276
run: |
@@ -75,12 +79,13 @@ jobs:
7579
# Older clang version (should be close to our minimum supported version)
7680
clang_3_9:
7781
runs-on: ubuntu-18.04
82+
if: "false" # FIXME
7883
steps:
7984
- uses: actions/checkout@v3
8085
- name: Install deps
8186
run: |
8287
source ./util/ci/common.sh
83-
install_linux_deps clang-3.9 gdb
88+
install_linux_deps clang-3.9 valgrind
8489
8590
- name: Build
8691
run: |
@@ -93,35 +98,34 @@ jobs:
9398
run: |
9499
./bin/minetest --run-unittests
95100
96-
- name: Integration test + devtest
101+
- name: Valgrind
97102
run: |
98-
./util/test_multiplayer.sh
103+
valgrind --leak-check=full --leak-check-heuristics=all --undef-value-errors=no --error-exitcode=9 ./bin/minetest --run-unittests
99104
100105
# Current clang version
101-
clang_10:
102-
runs-on: ubuntu-20.04
106+
clang_14:
107+
runs-on: ubuntu-22.04
103108
steps:
104109
- uses: actions/checkout@v3
105110
- name: Install deps
106111
run: |
107112
source ./util/ci/common.sh
108-
install_linux_deps clang-10 valgrind libluajit-5.1-dev
113+
install_linux_deps clang-14 gdb
109114
110115
- name: Build
111116
run: |
112117
./util/ci/build.sh
113118
env:
114-
CC: clang-10
115-
CXX: clang++-10
116-
CMAKE_FLAGS: "-DREQUIRE_LUAJIT=1"
119+
CC: clang-14
120+
CXX: clang++-14
117121

118122
- name: Test
119123
run: |
120124
./bin/minetest --run-unittests
121125
122-
- name: Valgrind
126+
- name: Integration test + devtest
123127
run: |
124-
valgrind --leak-check=full --leak-check-heuristics=all --undef-value-errors=no --error-exitcode=9 ./bin/minetest --run-unittests
128+
./util/test_multiplayer.sh
125129
126130
# Build with prometheus-cpp (server-only)
127131
clang_9_prometheus:

.github/workflows/macos.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,13 @@ env:
2828

2929
jobs:
3030
build:
31-
runs-on: macos-10.15
31+
runs-on: macos-11
3232
steps:
3333
- uses: actions/checkout@v3
3434
- name: Install deps
3535
run: |
36-
pkgs=(cmake freetype gettext gmp hiredis jpeg jsoncpp leveldb libogg libpng libvorbis luajit zstd)
37-
brew update
38-
brew install ${pkgs[@]}
39-
brew unlink $(brew ls --formula)
40-
brew link ${pkgs[@]}
36+
source ./util/ci/common.sh
37+
install_macos_deps
4138
4239
- name: Build
4340
run: |
@@ -49,8 +46,8 @@ jobs:
4946
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14 \
5047
-DCMAKE_FIND_FRAMEWORK=LAST \
5148
-DCMAKE_INSTALL_PREFIX=../build/macos/ \
52-
-DRUN_IN_PLACE=FALSE \
53-
-DENABLE_FREETYPE=TRUE -DENABLE_GETTEXT=TRUE
49+
-DRUN_IN_PLACE=FALSE -DENABLE_GETTEXT=TRUE \
50+
-DINSTALL_DEVTEST=TRUE
5451
make -j2
5552
make install
5653

.gitignore

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ gtags.files
3030
build/.cmake/
3131
# Gradle
3232
.gradle
33+
# Clang
34+
.cache
35+
# AppImage
36+
*.AppImage
37+
*.zsync
38+
appimage-build
39+
AppDir
3340

3441
## Files related to Minetest development cycle
3542
/*.patch
@@ -41,17 +48,17 @@ build/.cmake/
4148
/bin/
4249
/games/*
4350
!/games/devtest/
51+
/games/devtest/mods/soundstuff/sounds/gitignored_sounds/*
52+
!/games/devtest/mods/soundstuff/sounds/gitignored_sounds/custom_sounds_here.txt
4453
/cache
4554
/textures/*
4655
!/textures/base/
4756
/screenshots
4857
/sounds
4958
/mods/*
50-
!/mods/minetest/
51-
/mods/minetest/*
52-
!/mods/minetest/mods_here.txt
53-
/worlds
54-
/world/
59+
!/mods/mods_here.txt
60+
/worlds/*
61+
!/worlds/worlds_here.txt
5562
/clientmods/*
5663
!/clientmods/preview/
5764
/client/mod_storage/

0 commit comments

Comments
 (0)