Skip to content

Commit 0957d07

Browse files
authored
Merge branch 'master' into pr_map_no_rgb
2 parents 2410cc4 + 10cda6f commit 0957d07

File tree

279 files changed

+22378
-11081
lines changed

Some content is hidden

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

279 files changed

+22378
-11081
lines changed

.github/workflows/build.yaml

+29-17
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,32 @@ jobs:
66
build-cmake:
77
runs-on: ${{ matrix.os }}
88
strategy:
9+
fail-fast: false
910
matrix:
10-
os: [ubuntu-latest, macOS-latest, windows-latest, ubuntu-16.04]
11+
os: [ubuntu-latest, macOS-latest, windows-latest, ubuntu-20.04]
1112
include:
1213
- os: ubuntu-latest
13-
cmake-args: -G "Unix Makefiles"
14-
build-args: --parallel
15-
package-file: teeworlds-*-linux_x86_64.tar.xz
14+
cmake-args: -G Ninja
15+
package-file: "*-linux_x86_64.tar.xz"
1616
env:
1717
CFLAGS: -Wdeclaration-after-statement -Werror
1818
CXXFLAGS: -Werror
19-
- os: ubuntu-16.04
19+
- os: ubuntu-20.04
2020
cmake-path: /usr/bin/
21-
cmake-args: -G "Unix Makefiles"
22-
package-file: teeworlds-*-linux_x86_64.tar.xz
21+
cmake-args: -G Ninja
22+
package-file: "*-linux_x86_64.tar.xz"
2323
env:
2424
CFLAGS: -Wdeclaration-after-statement -Werror
2525
CXXFLAGS: -Werror
2626
- os: macOS-latest
27-
cmake-args: -G "Unix Makefiles"
28-
build-args: --parallel
29-
package-file: teeworlds-*-osx.dmg
27+
cmake-args: -G Ninja
28+
package-file: "*-macos.dmg"
3029
env:
3130
CFLAGS: -Wdeclaration-after-statement -Werror
3231
CXXFLAGS: -Werror
3332
- os: windows-latest
34-
cmake-args: -G "Visual Studio 16 2019" -A x64
35-
package-file: teeworlds-*-win64.zip
33+
cmake-args: -A x64
34+
package-file: "*-win64.zip"
3635
env:
3736
CFLAGS: /WX
3837
CXXFLAGS: /WX
@@ -47,13 +46,17 @@ jobs:
4746
if: contains(matrix.os, 'ubuntu')
4847
run: |
4948
sudo apt-get update -y
50-
sudo apt-get install pkg-config cmake libfreetype6-dev libsdl2-dev -y
49+
sudo apt-get install pkg-config cmake ninja-build libfreetype6-dev libsdl2-dev -y
5150
5251
- name: Prepare MacOS
5352
if: contains(matrix.os, 'macOS')
5453
run: |
55-
brew update
56-
brew install pkg-config sdl2
54+
brew update || true
55+
brew install pkg-config sdl2 python3 ninja || true
56+
# --overwrite for: Target /usr/local/bin/2to3 already exists.
57+
brew link --overwrite [email protected]
58+
brew upgrade freetype
59+
sudo rm -rf /Library/Developer/CommandLineTools
5760
5861
- name: Build in debug mode
5962
env: ${{ matrix.env }}
@@ -67,6 +70,10 @@ jobs:
6770
run: |
6871
cd debug
6972
${{ matrix.cmake-path }}cmake --build . --config Debug ${{ matrix.build-args }} --target run_tests
73+
- name: Run debug server
74+
env: ${{ matrix.env }}
75+
run: |
76+
cd debug
7077
./teeworlds_srv shutdown
7178
7279
- name: Build in release mode
@@ -80,6 +87,10 @@ jobs:
8087
run: |
8188
cd release
8289
${{ matrix.cmake-path }}cmake --build . --config Release ${{ matrix.build-args }} --target run_tests
90+
- name: Run release server
91+
env: ${{ matrix.env }}
92+
run: |
93+
cd release
8394
./teeworlds_srv shutdown
8495
8596
- name: Package
@@ -98,6 +109,7 @@ jobs:
98109
build-bam:
99110
runs-on: ${{ matrix.os }}
100111
strategy:
112+
fail-fast: false
101113
matrix:
102114
os: [ubuntu-latest, macOS-latest, windows-latest]
103115

@@ -110,7 +122,7 @@ jobs:
110122
uses: actions/checkout@v2
111123
with:
112124
repository: matricks/bam
113-
ref: 07fbb5543c692f6b9a7f09e48c64e2368349a3a8
125+
ref: 8cd08744c37666830d439ab54016c9d228c63b68
114126
path: ./bam
115127

116128
- name: Prepare Linux
@@ -148,4 +160,4 @@ jobs:
148160
- name: Create MacOS app using make_release.py
149161
if: contains(matrix.os, 'macOS')
150162
run: |
151-
sudo python3 scripts/make_release.py master osx
163+
sudo python3 scripts/make_release.py master macos

.github/workflows/style.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Check style
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- master
7+
- staging.tmp
8+
- trying.tmp
9+
- staging-squash-merge.tmp
10+
pull_request:
11+
12+
jobs:
13+
check-style:
14+
runs-on: ubuntu-20.04
15+
steps:
16+
- uses: actions/checkout@v2
17+
with:
18+
submodules: true
19+
- name: Prepare
20+
run: |
21+
sudo apt-get update -y
22+
sudo apt-get install jq -y
23+
- name: Check header guards
24+
run: scripts/check_header_guards.py
25+
- name: Lint JSON
26+
run: |
27+
while read -r json;
28+
do
29+
jq '.' "$json" || { echo "$json"; exit 1; };
30+
done < <(find . -name "*.json");
31+

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,16 @@ map_version*
2828
mastersrv*
2929
packetgen*
3030
teeworlds*
31+
!other/bash-completion/teeworlds
3132
!teeworlds.manifest
3233
!teeworlds.rc
3334
teeworlds_srv*
35+
!other/bash-completion/teeworlds_srv
3436
testrunner
3537
versionsrv*
3638

3739
# IDE project files
40+
.cache
3841
.cproject
3942
.idea
4043
.project

.gitmodules

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[submodule "datasrc/languages"]
22
path = datasrc/languages
3-
url = git://github.com/teeworlds/teeworlds-translation.git
3+
url = https://github.com/teeworlds/teeworlds-translation.git
44
branch = master
55
[submodule "datasrc/maps"]
66
path = datasrc/maps
7-
url = git://github.com/teeworlds/teeworlds-maps.git
7+
url = https://github.com/teeworlds/teeworlds-maps.git
88
branch = master

0 commit comments

Comments
 (0)