Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into fix_some_unisolid_i…
Browse files Browse the repository at this point in the history
…ssues
  • Loading branch information
Brockengespenst committed Nov 4, 2024
2 parents e75912b + 37a3161 commit 9979671
Show file tree
Hide file tree
Showing 632 changed files with 71,605 additions and 63,854 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/bsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
# Fetch the whole tree so git describe works
fetch-depth: 0
Expand Down Expand Up @@ -79,5 +79,4 @@ jobs:
# TODO: Uncomment whenever possible
make -j3 VERBOSE=1
make install DESTDIR="/tmp/supertux" VERBOSE=1
./test_supertux2
actions/checkout@v4
./test_supertux2
3 changes: 2 additions & 1 deletion .github/workflows/gnulinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ jobs:
doxygen docs/Doxyfile
- name: Package
if: ${{ matrix.arch != '32' }}
if: matrix.arch != '32'
env:
OS_NAME: ${{ matrix.os }}
ARCH: ${{ matrix.arch }} # TODO: Working Linux 32-bit packaging
Expand All @@ -224,6 +224,7 @@ jobs:
run: ../.ci_scripts/package.sh

- name: Upload AppImage
if: matrix.build_type != 'Debug' && matrix.glbinding == 'OFF'
uses: actions/upload-artifact@v4
with:
name: "${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.compiler }}-${{ matrix.build_type }}${{ matrix.glbinding == 'ON' && '-glbinding' || '' }}-appimage"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ jobs:
--check-level=exhaustive \
--quiet --inline-suppr --language=c++ --error-exitcode=10 \
-j"$(nproc)" --std=c++17 --enable=warning,style \
--suppress=useStlAlgorithm src/
--suppress=useStlAlgorithm -UEMSCRIPTEN src/
5 changes: 3 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ jobs:
/usr/local/opt/webp/lib/libsharpyuv.0.dylib \
/usr/local/opt/webp/lib/libwebp.7.dylib
install_name_tool -change \
'@rpath/libjxl_cms.0.10.dylib' \
/usr/local/opt/jpeg-xl/lib/libjxl_cms.0.10.dylib \
'@rpath/libjxl_cms.0.11.dylib' \
/usr/local/opt/jpeg-xl/lib/libjxl_cms.0.11.dylib \
/usr/local/opt/jpeg-xl/lib/libjxl.dylib
# Something funky happens with freetype if mono is left
Expand Down Expand Up @@ -116,6 +116,7 @@ jobs:
run: ../.ci_scripts/package.sh

- uses: actions/upload-artifact@v4
if: matrix.build_type != 'Debug' && matrix.glbinding == 'OFF'
with:
name: "${{ matrix.os }}-${{ matrix.build_type }}${{ matrix.glbinding == 'ON' && '-glbinding' || '' }}-dmg"
path: build/upload/*.dmg
Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/translation_templates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# SuperTux
# Copyright (C) 2024 Tobias Markus
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

name: translation_templates
on:
workflow_dispatch:

jobs:
update-all-templates:
runs-on: ubuntu-20.04
steps:
- name: Checkout SuperTux repository
uses: actions/checkout@v4
with:
repository: 'SuperTux/supertux'
fetch-depth: 0

- name: Update translation templates
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Update packages
sudo apt-get update
sudo apt-get install -y gettext
# Checkout master to make git describe work
git checkout master
# Update translation templates:
chmod +x makepot.sh
sh ./makepot.sh
# Commit
git status
git config --global user.email "[email protected]"
git config --global user.name "SuperTux Bot"
git commit -am "Update translation templates" || true
git push https://git:[email protected]/SuperTux/supertux.git master
1 change: 1 addition & 0 deletions .github/workflows/ubuntu-touch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
~/.local/bin/clickable build --verbose ${BUILD_TYPE} --arch ${ARCH}
- uses: actions/upload-artifact@v4
if: matrix.build_type != 'Debug'
with:
name: "clickable-${{ matrix.arch }}-${{ matrix.build_type }}-${{ matrix.opengl }}-click"
path: build.clickable/*.click
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ jobs:
mv supertux2* upload/
- uses: actions/upload-artifact@v4
if: matrix.build_type != 'Debug'
with:
name: "wasm32-emscripten-${{ matrix.build_type }}-html"
path: build/upload/*
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ jobs:
fail-fast: false
matrix:
arch: [x64, x86]
build_type: [Debug, Release]
build_type: [Debug, RelWithDebInfo]
glbinding: [OFF] # [ON, OFF] # FIXME: Fix Windows glbinding builds
include:
- build_type: Release
- build_type: RelWithDebInfo
arch: x64
glbinding: OFF
release: ON
- build_type: Release
- build_type: RelWithDebInfo
arch: x86
glbinding: OFF
release: ON
Expand Down Expand Up @@ -105,6 +105,7 @@ jobs:
"./$Env:BUILD_TYPE/run_tests.exe"
- name: Package MSI Installer
if: matrix.build_type != 'Debug' && matrix.glbinding == 'OFF'
shell: pwsh
working-directory: build
env:
Expand Down Expand Up @@ -148,6 +149,7 @@ jobs:
#>
- name: Upload Portable Package
if: matrix.build_type != 'Debug' && matrix.glbinding == 'OFF'
uses: actions/upload-artifact@v4
with:
name: "windows-${{ matrix.arch }}-${{ matrix.build_type }}${{ matrix.glbinding == 'ON' && '-glbinding' || '' }}-portable"
Expand Down
9 changes: 4 additions & 5 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,10 @@ Once all of these are installed; you may install dependencies with vcpkg. In any
```
./bootstrap-vcpkg.bat -disableMetrics
./vcpkg integrate install
./vcpkg install --triplet=x86-windows gtest curl freetype glew libogg libraqm libvorbis openal-soft sdl2 sdl2-image[libjpeg-turbo] glm zlib
./vcpkg install --triplet=x64-windows gtest curl freetype glew libogg libraqm libvorbis openal-soft sdl2 sdl2-image[libjpeg-turbo] glm zlib
```

**Note:** If you wish to produce 64-bit builds, replace `--triplet=x86-windows` with `--triplet=x64-windows`.
**Note:** If you wish to produce 32-bit builds, replace `--triplet=x64-windows` with `--triplet=x86-windows`.

Once dependencies are installed:

Expand All @@ -261,16 +261,15 @@ Once dependencies are installed:

3. Open a console window and navigate to the `build` directory.

5. Run `cmake .. -A Win32 -DCMAKE_BUILD_TYPE=Release -DVCPKG_BUILD=ON -DCMAKE_TOOLCHAIN_FILE=C:/PATH/TO/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x86-windows`.
5. Run `cmake .. -DCMAKE_BUILD_TYPE=Release -DVCPKG_BUILD=ON -DCMAKE_TOOLCHAIN_FILE=C:/PATH/TO/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows`.

**Make sure to change the path to vcpkg to the actual path to vcpkg on your system!**

Options:
- `-A Win32` tells CMake to produce 32-bit executables. To produce 64-bit executables, you may either replace `Win32` with `x64`, or omit this argument entirely (remove everything, including the `-A`).
- `-DCMAKE_BUILD_TYPE=Release` creates a Release build, which does not contain debug information and runs faster. You may also produce `Debug` builds, but these run significantly slower. Other options may be available, such as `RelWithDebInfo` and `MinSizeRel`, but they are not tested. [More info](https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html)
- `-DVCPKG_BUILD=ON` tells SuperTux to use vcpkg to find dependencies.
- `-DCMAKE_TOOLCHAIN_FILE=C:/PATH/TO/vcpkg/scripts/buildsystems/vcpkg.cmake` tells CMake to use the vcpkg toolchain to load dependencies. **Make sure to change the path to the actual path to vcpkg on your system!**
- `-DVCPKG_TARGET_TRIPLET=x86-windows` tells vcpkg to use 32-bit dependencies for Windows. If you are compiling 64-bit executables, replace "x86" with "x64".
- `-DVCPKG_TARGET_TRIPLET=x64-windows` tells vcpkg to use 64-bit dependencies for Windows. If you are compiling 32-bit executables, replace "x64" with "x86".
- Optionally, you may add `-G "Visual Studio 16 2019"` to force a certain version of Visual Studio if multiple are installed on your system.

For more CMake options, look at end of the Linux/UNIX build section.
Expand Down
Loading

0 comments on commit 9979671

Please sign in to comment.