Commit Graph

47 Commits

Author SHA1 Message Date
Louis Gombert
79a59f25e4 Remove win32 preset, make x64 the default on Windows 2024-06-29 18:21:38 +02:00
Edu Garcia
a2d3a9cc75
Merge pull request #422 from Lgt2x/windows-ninja
Windows CMake preset: use ninja generator
2024-06-14 07:32:44 +01:00
Louis Gombert
3036f44017 x64 compilation fixes 2024-06-09 20:12:47 +02:00
Louis Gombert
87f19acc2f Internal editor: minimal compilation fixes 2024-06-07 21:41:40 +02:00
Louis Gombert
82c04f8fb9 Windows CMake preset: use ninja generator 2024-06-07 19:20:07 +02:00
Azamat H. Hackimov
95caa7b6c3 Remove ncurses enabled console
This type of console is enabled only with `-svgalib` and `-dedicated` options. Since there no svgalib direct support (which is pretty old and too specific to Linux tech), it's better completely remove this code for simplicity and reducing external dependencies.
Removed `-svgalib` option as unused now.
2024-05-31 13:12:28 +03:00
Azamat H. Hackimov
08b906fcc3 Introducing installation steps
Added installation steps for all built targets. Added FORCE_PORTABLE_INSTALL cmake option that controls portable installation (only supported for now).
2024-05-22 21:35:52 +03:00
JeodC
7576a353e4 Add win64 build preset 2024-05-22 10:21:59 -04:00
Jason Yundt
2bb1e4167a Use CMake to create LICENSE file, not CI
Before this change, the CI script had a special step that would ensure
that CI artifacts contained a copy of Descent 3’s license. This change
replaces that special CI step with a CMake target.

The main motivation behind this change is to make it easier for people
to create packages for Descent 3. Before this change, if you wanted to
create a package for Descent 3, then you would have to manually ensure
that your package contained a copy of the GPL.
2024-05-17 12:14:01 -04:00
Louis Gombert
0e69bf465f
Merge pull request #241 from icculus/ryan-sdl2-port
Initial SDL2 port
2024-05-06 08:57:20 +00:00
Jason Yundt
db742e6939 Add a copy of the GPL to CI artifacts
The GPL requires that you include a copy of the GPL with every copy of
programs that are released under the GPL [1]. Before this change, CI
artifacts didn’t include a copy of the GPL.

Fixes #276.

[1]: <https://www.gnu.org/licenses/gpl-faq.en.html#WhyMustIInclude>
2024-05-04 15:16:14 -04:00
Louis Gombert
ad78f4d756 Enable logger on all CI builds 2024-05-03 16:01:30 -04:00
Ryan C. Gordon
ff571ed7dd
Make sure Mac and Linux builds have SDL2 available.
Currently Windows gets this from vcpkg. Mac will get it from Homebrew,
and the GitHub linux builders will just install it with apt-get.

This might not be the perfect solution (having to install Homebrew is a pain,
GitHub Actions has an ancient SDL2), but it gets all the common platforms
running for now without much fuss.
2024-05-02 08:30:46 -04:00
Bryan Perris
b0e5754e96 Introduce spdlog logging system
* The game version is now printed via the log system rather than from within the loki_initialize function.
remove this line
2024-04-30 14:27:38 -04:00
Azamat H. Hackimov
5c63dec1a5 Customize name of build job
Creates eye-candy look in GitHub CI UI
2024-04-26 10:21:53 +03:00
Azamat H. Hackimov
cab27f3018 Rearrange Build and Unittest steps
Simplify workflow with additional matrix.build_type items.
2024-04-26 10:21:50 +03:00
Azamat H. Hackimov
2af2728d74 Enable unittests on CI
Added additional dependency GTest for all platforms.
2024-04-26 10:19:41 +03:00
Thomas Otto
a0a247a117 CI: give OSes pretty names
And name the resulting zip file Descent3_<OS>.zip
2024-04-25 23:06:10 +02:00
Jeod
d46f61cca3
Allow manual triggering if needed 2024-04-24 15:57:52 -04:00
Oskar Strengbohm
132a725daa unzip: Link against real zlib. 2024-04-24 08:22:13 +02:00
Jeod
b274be59b7
Update build.yml 2024-04-22 17:31:41 -04:00
Edu Garcia
ebc78a6463
Merge pull request #139 from winterheart/linux-clang
CI: Add Linux / clang to build matrix
2024-04-21 21:24:34 +01:00
Louis Gombert
f1ec3d76c6
Merge pull request #122 from winterheart/hogutils
Own implementation of HogUtils - HogMaker
2024-04-21 18:08:39 +00:00
Azamat H. Hackimov
6a6f6570be CI: Add Linux / clang to build matrix 2024-04-21 20:17:04 +03:00
Dan Raviv
eb1ad62b8b Verbose build in CI
Useful for debugging CI and build issues
2024-04-21 09:21:41 -07:00
Dan Raviv
462ae4de3f [CI] Use same job for both Debug and Release builds
Making use of CMake's multi-config generators which we're using.
Simpler and more efficient, halves number of jobs.
2024-04-21 09:21:15 -07:00
Azamat H. Hackimov
1765d07790 Remove now unused hogUtils-i686 2024-04-21 19:15:23 +03:00
Jason Yundt
423dfdb249 Remove unnecessary build dependency
2d4d82d (Accurately find the linux artifacts (#80), 2024-04-19) made it
so that make no longer gets used as a part of the build process, but it
didn’t remove make from the list of build dependencies.
2024-04-21 08:59:56 -04:00
Edu Garcia
76ebfa19a0 fix CMakePresets for Windows, add build presets 2024-04-20 07:47:09 +01:00
Jeod
2d4d82d469
Accurately find the linux artifacts (#80)
use ninja for Linux builds, fixes missing Linux artifacts on CI
2024-04-19 12:13:19 +01:00
Louis Gombert
ee5478328c
Merge pull request #60 from Arcnor/macos-runners
enable both Intel & M1 macOS runners
2024-04-18 07:40:13 +00:00
Edu Garcia
dcfdbf0fcf enable both Intel & M1 macOS runners 2024-04-18 08:18:08 +01:00
Azamat H. Hackimov
3f7666eaac Fixes and enhancements to CMake build system
Updated compatibility level to 3.19. Set C++17 globally for all platforms. Removed hardcoded compiler and optimisation flags. Adjusted dependencies and libraries linking.

Reworked script building and hog creation.
2024-04-18 03:04:16 +03:00
Andrew Grigorev
47086078ac Merge branch 'main' of github.com:kevinbentley/Descent3 into linux-build 2024-04-18 02:00:35 +03:00
Jeod
9af13e49bd
Rename artifacts (#50)
* Rename artifacts

Artifacts are currently all named build-Debug and build-Release. Include the platform in the name.
2024-04-17 18:48:51 -04:00
Andrew Grigorev
bacf598ced Remove more redundant libs 2024-04-18 01:48:03 +03:00
Andrew Grigorev
7010261c9c Revert fork CI change 2024-04-18 01:44:21 +03:00
Azamat H. Hackimov
d83acc2862 clang-format-ignore support appears in 18 version
Remove temp file.
2024-04-18 00:49:26 +03:00
Andrew Grigorev
5a1629ccd5 Create D3_GAMEDIR directory 2024-04-18 00:09:13 +03:00
Andrew Grigorev
1eb8782cb3 Trigger Github Actions for all pushes in forks 2024-04-17 23:17:44 +03:00
Andrew Grigorev
4eb96c6b35 Check Linux build in Github Actions 2024-04-17 23:17:44 +03:00
Jeod
97a22f5bf2
Use clang-format with manual trigger only
Clang-format is conflicting with several pull requests and even current code. Change it to manual use for the time being.
2024-04-17 15:37:50 -04:00
Jacob Coby
55e29c23a6 Use brew bundle to install dependencies 2024-04-17 11:29:41 -04:00
Dan Raviv
d3c4fdddb1 Add macOS build CI 2024-04-16 19:36:49 -07:00
Dan Raviv
2cf2f6ff6c [CI] Use CMake windows preset 2024-04-16 19:14:03 -07:00
Edu Garcia
0f1f1176a4 enable CI for building 2024-04-16 23:03:46 +01:00
Azamat H. Hackimov
78bb130bac GitHub Actions for clang-format check
First QoL check for code health. This action will be executed on each pull request including this one.
2024-04-16 22:04:41 +03:00