Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 6dfc853

Browse files
committed
Merge branch 'development'
2 parents 0bd77b3 + 1d7573d commit 6dfc853

File tree

5,078 files changed

+854097
-294981
lines changed

Some content is hidden

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

5,078 files changed

+854097
-294981
lines changed

.github/workflows/build-check.yml

Lines changed: 33 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,33 @@ name: Compile check
22

33
# Controls when the action will run.
44
on:
5-
# Triggers the workflow on push or pull request events but only for the development branch
5+
# Triggers the workflow for pushes to master or development, for pull request events, and for the merge queue
66
push:
77
branches: [master, development]
88
pull_request:
99
types: [opened, reopened, ready_for_review, synchronize]
10+
merge_group:
11+
types: [checks_requested]
1012

1113
workflow_dispatch:
1214

1315
jobs:
1416
build-linux:
1517
# The type of runner that the job will run on
16-
runs-on: ubuntu-20.04
18+
runs-on: ubuntu-latest
1719

1820

1921
# Steps represent a sequence of tasks that will be executed as part of the job
2022
steps:
2123
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
22-
- uses: actions/checkout@v2
23-
- uses: actions/setup-python@v2
24+
- uses: actions/checkout@v3
25+
- uses: actions/setup-python@v3
2426

2527
- name: Install Dependencies
2628
run: |
2729
sudo apt-get update -yq
28-
sudo apt-get install --no-install-recommends liballegro4-dev libloadpng4-dev libflac++-dev luajit-5.1-dev liblua5.2-dev libminizip-dev liblz4-dev libpng++-dev libx11-dev libboost-dev
30+
sudo apt-get install --no-install-recommends liballegro4-dev libloadpng4-dev libflac++-dev luajit-5.1-dev liblua5.2-dev libminizip-dev liblz4-dev libpng++-dev libx11-dev libboost-dev libtbb-dev libsdl2-dev libopengl-dev ninja-build
31+
sudo pip install meson==0.60.3
2932
3033
- name: Install Clang
3134
# You may pin to the exact commit or the version.
@@ -35,26 +38,33 @@ jobs:
3538
# Set up cc/c++ executables
3639
cc: 1 # optional, default is 1
3740

38-
- name: Setup ccache
39-
uses: hendrikmuhs/ccache-action@v1
40-
with:
41-
key: build-check-${{runner.os}}-regressed
42-
max-size: 5G
41+
- name: Build
42+
env:
43+
CC: "gcc"
44+
CXX: "g++"
45+
run: |
46+
meson setup --buildtype=debug -Ddebug_type=full build
47+
meson compile -C build
48+
49+
build-macos:
50+
runs-on: macos-latest
51+
52+
53+
steps:
54+
- uses: actions/checkout@v3
55+
- uses: actions/setup-python@v3
56+
57+
- name: Install Dependencies
58+
run: |
59+
brew install pkg-config tbb sdl2 minizip lz4 flac luajit [email protected] libpng gcc@12 ninja meson
4360
4461
- name: Build
45-
# You may pin to the exact commit or the version.
46-
# uses: BSFishy/meson-build@6f1930d878fd3eed3853c1c91285ec604c37f3a5
47-
uses: BSFishy/[email protected]
4862
env:
49-
CC: "clang"
50-
CXX: "clang++"
51-
CCACHE_SLOPPINESS: pch_defines,time_macros,include_file_mtime,include_file_ctime
52-
with:
53-
# The action to run
54-
setup-options: --buildtype=debug -Ddebug_type=full
55-
meson-version: 0.55.3
56-
ninja-version: 1.10.0
57-
action: build
63+
CC: "gcc-12"
64+
CXX: "g++-12"
65+
run: |
66+
meson setup --buildtype=debug -Ddebug_type=full build
67+
meson compile -C build
5868
5969
build-windows:
6070
env:
@@ -69,7 +79,7 @@ jobs:
6979
runs-on: windows-latest
7080

7181
steps:
72-
- uses: actions/checkout@v2
82+
- uses: actions/checkout@v3
7383

7484
- name: Add MSBuild to PATH
7585
uses: microsoft/setup-msbuild@v1

.github/workflows/meson.yml

Lines changed: 27 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Linux Build
1+
name: Meson Build (Linux, macOS)
22
# Controls when the action will run.
33
on:
44
# Triggers the workflow on push or pull request events but only for the development branch
@@ -13,19 +13,20 @@ jobs:
1313
# This workflow contains a single job called "build"
1414
build-release-linux:
1515
# The type of runner that the job will run on
16-
runs-on: ubuntu-20.04
16+
runs-on: ubuntu-latest
1717

1818

1919
# Steps represent a sequence of tasks that will be executed as part of the job
2020
steps:
2121
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
22-
- uses: actions/checkout@v2
23-
- uses: actions/setup-python@v2
22+
- uses: actions/checkout@v3
23+
- uses: actions/setup-python@v3
2424

2525
- name: Install Dependencies
2626
run: |
2727
sudo apt-get update -yq
28-
sudo apt-get install --no-install-recommends wget liballegro4-dev libloadpng4-dev libflac++-dev luajit-5.1-dev liblua5.2-dev libminizip-dev liblz4-dev libpng++-dev libx11-dev libboost-dev
28+
sudo apt-get install --no-install-recommends wget liballegro4-dev libloadpng4-dev libflac++-dev luajit-5.1-dev liblua5.2-dev libminizip-dev liblz4-dev libpng++-dev libx11-dev libboost-dev libtbb-dev libsdl2-dev libopengl-dev libfuse2 ninja-build
29+
sudo pip install meson==0.60.0
2930
3031
- name: Install Clang
3132
# You may pin to the exact commit or the version.
@@ -35,26 +36,13 @@ jobs:
3536
# Set up cc/c++ executables
3637
cc: 1 # optional, default is 1
3738

38-
- name: Setup ccache
39-
uses: hendrikmuhs/ccache-action@v1
40-
with:
41-
key: build-release-${{runner.os}}
42-
max-size: 5G
43-
4439
- name: Build
45-
# You may pin to the exact commit or the version.
46-
# uses: BSFishy/meson-build@6f1930d878fd3eed3853c1c91285ec604c37f3a5
47-
uses: BSFishy/[email protected]
4840
env:
49-
CC: "clang"
50-
CXX: "clang++"
51-
CCACHE_SLOPPINESS: pch_defines,time_macros,include_file_mtime,include_file_ctime
52-
with:
53-
# The action to run
54-
setup-options: --buildtype=release -Dinstall_data=false -Dinstall_runner=false -Dfmod_dir=/usr/lib/ --prefix=/usr/
55-
meson-version: 0.55.3
56-
ninja-version: 1.10.0
57-
action: build
41+
CC: "gcc"
42+
CXX: "g++"
43+
run: |
44+
meson setup --buildtype=release -Dinstall_data=false -Dinstall_runner=false -Dfmod_dir=/usr/lib/ --prefix=/usr/ build
45+
meson compile -C build
5846
5947
- name: Create AppDir
6048
run: |
@@ -77,79 +65,33 @@ jobs:
7765
./lindeploy --appdir=build/AppDir --output appimage
7866
7967
- name: Upload Appimage
80-
uses: actions/upload-artifact@v2
68+
uses: actions/upload-artifact@v3
8169
with:
82-
name: CortexCommand.AppImage
70+
name: CortexCommand (Linux)
8371
path: CortexCommand.AppImage
8472

73+
build-release-macos:
74+
runs-on: macos-latest
8575

86-
build-debug-linux:
87-
# The type of runner that the job will run on
88-
runs-on: ubuntu-20.04
89-
90-
91-
# Steps represent a sequence of tasks that will be executed as part of the job
9276
steps:
93-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
94-
- uses: actions/checkout@v2
95-
- uses: actions/setup-python@v2
77+
- uses: actions/checkout@v3
78+
- uses: actions/setup-python@v3
9679

9780
- name: Install Dependencies
9881
run: |
99-
sudo apt-get update -yq
100-
sudo apt-get install --no-install-recommends wget liballegro4-dev libloadpng4-dev libflac++-dev luajit-5.1-dev libminizip-dev liblz4-dev libpng++-dev libx11-dev libboost-dev
101-
102-
- name: Install Clang
103-
# You may pin to the exact commit or the version.
104-
# uses: egor-tensin/setup-clang@d16e36d5f8a7eb00aa6627c1a536d94dfc4a913d
105-
uses: egor-tensin/setup-clang@v1
106-
with:
107-
# Set up cc/c++ executables
108-
cc: 1 # optional, default is 1
109-
110-
- name: Setup ccache
111-
uses: hendrikmuhs/ccache-action@v1
112-
with:
113-
key: build-release-${{runner.os}}
114-
max-size: 5G
82+
brew install pkg-config tbb sdl2 minizip lz4 flac luajit [email protected] libpng gcc ninja meson
11583
11684
- name: Build
117-
# You may pin to the exact commit or the version.
118-
# uses: BSFishy/meson-build@6f1930d878fd3eed3853c1c91285ec604c37f3a5
119-
uses: BSFishy/[email protected]
12085
env:
121-
CC: "clang"
122-
CXX: "clang++"
123-
CCACHE_SLOPPINESS: pch_defines,time_macros,include_file_mtime,include_file_ctime
124-
with:
125-
# The action to run
126-
setup-options: -Ddebug=true --optimization=g -Dinstall_data=false -Dinstall_runner=false -Dfmod_dir=/usr/lib/ --prefix=/usr/ -Ddebug_type=release
127-
meson-version: 0.55.3
128-
ninja-version: 1.10.0
129-
action: build
130-
131-
- name: Create AppDir
86+
CC: "gcc-12"
87+
CXX: "g++-12"
88+
LDFLAGS: "-static-libgcc -static-libstdc++"
13289
run: |
133-
echo "Setting output prefix"
134-
DESTDIR=${GITHUB_WORKSPACE}/build/AppDir meson install -C $GITHUB_WORKSPACE"/build"
90+
meson setup --buildtype=release -Ddebug_type=release build
91+
meson compile -C build
13592
136-
- name: Download linuxdeploy
137-
working-directory: ${{env.GITHUB_WORKSPACE}}
138-
run: |
139-
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage -O lindeploy
140-
chmod +x lindeploy
141-
142-
- name: Create AppImage
143-
working-directory: ${{env.GITHUB_WORKSPACE}}
144-
env:
145-
LD_LIBRARY_PATH: ./external/lib/linux/x86_64/
146-
OUTPUT: CortexCommand-debug.AppImage
147-
run: |
148-
echo ${LD_LIBRARY_PATH}
149-
./lindeploy --appdir=build/AppDir --output appimage
150-
151-
- name: Upload Appimage
152-
uses: actions/upload-artifact@v2
93+
- name: Artifact Deploy
94+
uses: actions/upload-artifact@v3
15395
with:
154-
name: CortexCommand-debug.AppImage
155-
path: CortexCommand-debug.AppImage
96+
name: CortexCommand (macOS)
97+
path: build/CortexCommand

.github/workflows/msbuild.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: windows-latest
2323

2424
steps:
25-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v3
2626

2727
- name: Add MSBuild to PATH
2828
uses: microsoft/setup-msbuild@v1
@@ -34,7 +34,7 @@ jobs:
3434
run: msbuild /m /p:Configuration="${{env.BUILD_CONFIGURATION}}" ${{env.SOLUTION_FILE_PATH}}
3535

3636
- name: Upload Artifact2
37-
uses: actions/upload-artifact@v2.2.2
37+
uses: actions/upload-artifact@v3
3838
with:
3939
name: Cortex Command.exe
4040
path: D:/a/Cortex-Command-Community-Project-Source/Cortex-Command-Community-Project-Data/Cortex Command x64.exe

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,20 @@
66
*.obj
77
*.vs
88
*.APS
9+
*.user
910

1011
compile_commands.json
1112
/.ccls-cache
1213

1314
/build*
1415

16+
/enc_temp_folder
17+
1518
/_Bin
1619
/NATPunchServer/Server/NATCompleteServer/Debug
1720
/NATPunchServer/Server/NATCompleteServer/Release
1821
/Documentation/Doxygen/Output
1922
MemCleanupInfo.txt
20-
RTEA.vcxproj.user
23+
RTEA.vcxproj.user
24+
.DS_Store
25+
.vscode

0 commit comments

Comments
 (0)