Skip to content

Commit

Permalink
Merge branch 'master' into world-previews
Browse files Browse the repository at this point in the history
  • Loading branch information
Vankata453 authored May 11, 2024
2 parents 3c421d5 + 2dfbc7d commit 537410d
Show file tree
Hide file tree
Showing 1,538 changed files with 58,169 additions and 30,179 deletions.
3 changes: 2 additions & 1 deletion .ci_scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ for file in upload/SuperTux*; do
shasum=$(shasum -a 256 "$file" | cut -d " " -f 1)
fi
echo "Checksum: $shasum";
echo "Branch: $BRANCH_NAME";
curl --data "apikey=$DOWNLOAD_APIKEY" \
--data "url=$url" \
--data "size=$size" \
--data "branch=$(git branch --show-current)" \
--data "branch=$BRANCH_NAME" \
--data "shasum=$shasum" \
-L -s https://download.supertux.org/submit.php
done
2 changes: 1 addition & 1 deletion .ci_scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

shopt -s nullglob

if ([ "$OS_NAME" = "macos-10.15" ] || [ "$OS_NAME" = "macos-11" ]) && [ "$PACKAGE" = "ON" ]; then
if ([ "$OS_NAME" = "macos-10.15" ] || [ "$OS_NAME" = "macos-12" ]) && [ "$PACKAGE" = "ON" ]; then
sudo chmod -R +w /usr/local/Cellar
cpack -G Bundle;
fi
Expand Down
23 changes: 0 additions & 23 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

80 changes: 80 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Bug Report
description: File a report for unexpected behavior in SuperTux.
title: "[Bug]: "
labels: ["type:bug"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: input
id: supertux-version
attributes:
label: SuperTux Version
description: The version of SuperTux, shown at the bottom-left corner on the title screen.
placeholder: ex. v0.6.3-1236-g7451121dd
validations:
required: true
- type: input
id: system-info
attributes:
label: System Information
description: Details about your operating system (such as Linux distribution or Windows version) and CPU architecture (ex. 64-bit or 32-bit).
placeholder: ex. Windows 11 64-bit
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: Expected Behavior
description: What did you expect to happen?
placeholder: Describe the behavior you expected in detail.
validations:
required: true
- type: textarea
id: actual-behavior
attributes:
label: Actual Behavior
description: Instead, what actually happened?
placeholder: Describe the actual behavior in detail.
validations:
required: true
- type: textarea
id: steps-to-reproduce
attributes:
label: Steps To Reproduce Actual Behavior
description: A clear and concise description of how the actual behavior was achieved, since starting up the game.
placeholder: |
Describe the steps leading to the actual behavior, preferably with a numerated list.
1. ...
2. ...
3. ...
validations:
required: true
- type: textarea
id: additional-info
attributes:
label: Additional Information
description: Include any additional information regarding the bug.
placeholder: You can also leave this empty.
validations:
required: false
- type: checkboxes
id: guidelines
attributes:
label: Guidelines For Reporting Issues
description: "Before submitting this issue, make sure you have done the following:"
options:
- label: I have read <https://github.com/SuperTux/supertux/blob/master/CONTRIBUTING.md#bug-reports>.
required: true
- label: I have verified this isn't an issue that's already been reported.
required: true
- label: I have verified this isn't a [discussion](https://github.com/SuperTux/supertux/discussions), or an issue about a crash or a feature request, but rather an actual bug ─ that is, the game did something not intended.
required: true
- label: I have verified this issue is **not** about wrong translations (use Transifex for those), or anything unsupported (e.g. third-party add-ons).
required: true
- label: In this report, I have only included details about **one** (1) bug.
required: true
- label: If I make a mistake while submitting this report, I agree to use the "Edit" feature to correct it, instead of closing this issue and opening a new one.
required: true
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Create a Discussion
url: https://github.com/SuperTux/supertux/discussions/new/choose
about: If you're looking for something else, create a Discussion, assuming this hasn't been reported there before.
76 changes: 76 additions & 0 deletions .github/ISSUE_TEMPLATE/crash.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Crash Report
description: File a report for a crash in SuperTux.
title: "[Crash]: "
labels: ["type:crash"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this crash report!
- type: input
id: supertux-version
attributes:
label: SuperTux Version
description: The version of SuperTux, shown at the bottom-left corner on the title screen.
placeholder: ex. v0.6.3-1236-g7451121dd
validations:
required: true
- type: input
id: system-info
attributes:
label: System Information
description: Details about your operating system (such as Linux distribution or Windows version) and CPU architecture (ex. 64-bit or 32-bit).
placeholder: ex. Windows 11 64-bit
validations:
required: true
- type: textarea
id: steps-to-reproduce
attributes:
label: Steps To Reproduce Crash
description: A clear and concise description of how the crash was achieved, since starting up the game.
placeholder: |
Describe the steps, leading to the crash, preferably with a numerated list.
1. ...
2. ...
3. ...
validations:
required: true
- type: textarea
id: debug-stacktrace
attributes:
label: Debugging Information (Stacktrace)
description: Include a stacktrace, leading to the crash. This can be obtained via a debugging utility.
placeholder: |
Paste the full stacktrace here.
You can leave this empty, in case a stacktrace can't be obtained (for example, if the game freezes).
render: shell
validations:
required: false
- type: textarea
id: additional-info
attributes:
label: Additional Information
description: Include any additional information, regarding the crash.
placeholder: You can also leave this empty.
validations:
required: false
- type: checkboxes
id: guidelines
attributes:
label: Guidelines For Reporting Issues
description: "Before submitting this issue, make sure you have done the following:"
options:
- label: I have read <https://github.com/SuperTux/supertux/blob/master/CONTRIBUTING.md#bug-reports>.
required: true
- label: I have verified this isn't an issue that's already been reported.
required: true
- label: I have verified this isn't a [discussion](https://github.com/SuperTux/supertux/discussions), or an issue about unintended behavior or a feature request, but rather an actual crash ─ that is, the game closed unexpectedly.
required: true
- label: I have verified this issue is **not** about wrong translations (use Transifex for those), or anything unsupported (e.g. third-party add-ons).
required: true
- label: In this report, I have only included details about **one** (1) crash.
required: true
- label: If I make a mistake while submitting this report, I agree to use the "Edit" feature to correct it, instead of closing this issue and opening a new one.
required: true
52 changes: 52 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Feature Requests
description: File a request for a feature you want to see in SuperTux!
title: "[Feature Request]: "
labels: ["type:idea"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this feature request!
- type: textarea
id: feature-details
attributes:
label: Feature Details
description: How would your feature work?
placeholder: A clear and concise description of the way the feature would function.
validations:
required: true
- type: textarea
id: feature-purpose
attributes:
label: Feature Purpose
description: What purpose would your feature serve, towards improving the SuperTux experience?
placeholder: A list of one or multiple example use-cases or positive outcomes from your feature being in SuperTux.
validations:
required: true
- type: textarea
id: feature-screenshots
attributes:
label: Concept Screenshots
description: Include any concept screenshots of the way your feature would look in-game, to help others grasp your idea better.
placeholder: |
To attach image files, click this area to highlight it, and then drag the files in.
You can also leave this empty.
validations:
required: false
- type: checkboxes
id: guidelines
attributes:
label: Guidelines For Reporting Issues
description: "Before submitting this issue, make sure you have done the following:"
options:
- label: I have read <https://github.com/SuperTux/supertux/blob/master/CONTRIBUTING.md#bug-reports>.
required: true
- label: I have verified this isn't a request that's already been submitted as an issue.
required: true
- label: I have verified this isn't a [discussion](https://github.com/SuperTux/supertux/discussions), or an issue with the game, but rather an actual feature request - a currently non-existent, but desired feature.
required: true
- label: In this request, I have only included details about **one** (1) desired feature.
required: true
- label: If I make a mistake while submitting this request, I agree to use the "Edit" feature to correct it, instead of closing this issue and opening a new one.
required: true
2 changes: 2 additions & 0 deletions .github/workflows/gnulinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

name: GNU/Linux
on:
workflow_dispatch:
push:
branches:
- master
Expand Down Expand Up @@ -276,6 +277,7 @@ jobs:
env:
PREFIX: "${{ github.sha }}/gh-actions/${{ matrix.os }}-${{ matrix.arch }}/${{ github.run_id }}"
DOWNLOAD_APIKEY: ${{ secrets.DOWNLOAD_APIKEY }}
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}

- name: Prepare Release
if: startsWith(github.ref, 'refs/tags/') && matrix.release && github.repository_owner == 'supertux'
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
name: Code Linting

on:
workflow_dispatch:
push:
branches:
- master
Expand Down Expand Up @@ -50,6 +51,7 @@ jobs:
- name: Lint code with Cppcheck
run: |
./danmar-cppcheck-*/cppcheck \
--check-level=exhaustive \
--quiet --inline-suppr --language=c++ --error-exitcode=10 \
-j"$(nproc)" --std=c++14 --enable=warning,style \
-j"$(nproc)" --std=c++17 --enable=warning,style \
--suppress=useStlAlgorithm src/
21 changes: 15 additions & 6 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

name: MacOS
on:
workflow_dispatch:
push:
branches:
- master
Expand All @@ -30,11 +31,11 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-11]
os: [macos-12]
build_type: [Debug, Release]
glbinding: [ON, OFF]
include:
- os: macos-11
- os: macos-12
build_type: Release
glbinding: OFF
release: ON
Expand All @@ -48,15 +49,22 @@ jobs:
submodules: true

- name: Install macos dependencies
if: ${{ matrix.os == 'macos-11' }}
if: ${{ matrix.os == 'macos-12' }}
run: |
# Use GLM 1.0.0 as later versions don't build with clang
HOMEBREW_NO_AUTO_UPDATE=1 brew install --formula ./mk/brew/glm.rb --build-from-source
brew install cmake googletest bash rename libogg libvorbis glew \
openal-soft sdl2 sdl2_image sdl2_ttf freetype harfbuzz \
fribidi glib gtk-doc glbinding libraqm glm zlib
fribidi glib gtk-doc glbinding@2 libraqm zlib
brew link glbinding@2
install_name_tool -change \
'@rpath/libsharpyuv.0.dylib' \
/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 \
/usr/local/opt/jpeg-xl/lib/libjxl.dylib
# Something funky happens with freetype if mono is left
sudo mv /Library/Frameworks/Mono.framework \
Expand Down Expand Up @@ -131,14 +139,15 @@ jobs:
env:
PREFIX: "${{ github.sha }}/gh-actions/${{ matrix.os }}-${{ matrix.arch }}/${{ github.run_id }}"
DOWNLOAD_APIKEY: ${{ secrets.DOWNLOAD_APIKEY }}
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}

- name: Prepare Release
if: startsWith(github.ref, 'refs/tags/') && matrix.release && github.repository_owner == 'supertux'
env:
OS: ${{ matrix.os }}
run: |
if [ "$OS" = "macos-11" ]; then
rename 's/.dmg/-11.dmg/' build/upload/SuperTux-*
if [ "$OS" = "macos-12" ]; then
rename 's/.dmg/-12.dmg/' build/upload/SuperTux-*
fi
- name: Create Release
Expand Down
Loading

0 comments on commit 537410d

Please sign in to comment.