Commit graph

49 commits

Author SHA1 Message Date
Anders Jenbo
ea0aaa8d2d
Update PS4.yml 2022-02-03 15:09:26 +01:00
John Törnblom
4a34544678
Port to Playstation 4 (#3988) 2022-02-03 14:50:26 +01:00
staphen
9b32c8d541 Update libzt to the latest version 2022-01-05 14:13:51 +01:00
Anders Jenbo
7c92945977 Add CI job for translation validation 2022-01-05 05:43:38 +01:00
Gleb Mazovetskiy
076b0c0c05 Overhaul tests
1. Adds a `libdevilution_so` target when tests are enabled.
2. Each test file is now a separate binary target linked against `libdevilutionx_so` (can now run tests in parallel).
3. Tests are now defined in a separate `test/CMakeLists.txt` file.
4. Building the tests is now controlled by the standard `BUILD_TESTING` option (defined by CTest).
5. Tests are now built by default.
6. On CI, test errors are now reported.

Also:

* `.clang-format`: Enable SortIncludes in tests
* `path_test.cpp`: Fix -Wsign-compare
2021-12-16 20:26:51 +00:00
Adam Heinermann
1484b4d8cf
Implement Discord rich presence (#3711) 2021-12-15 17:14:17 +01:00
staphen
4619ef3d5d Use static linking for zlib and libsodium in MinGW builds 2021-12-10 10:10:39 +01:00
staphen
66beceba59 Remove NIGHTLY_BUILD and BINARY_RELEASE options 2021-12-10 10:10:39 +01:00
Stephen C. Wills
dc93d4b377
Use distro zlib package for MinGW instead of SDL-ttf zlib dll 2021-12-08 01:31:20 +01:00
Gleb Mazovetskiy
4848632db2 CMake: Organize files
1. Platform and toolchain files are now all under `platforms/`, with a
   single `CMake/platforms/${platform}.cmake` per platform.

2. Custom functions/macros are under `functions/`.

3. Finder modules are in `/finders`.
2021-12-07 18:32:25 +01:00
Anders Jenbo
a821a1eb0c
[ios] Fix ipa bundle format 2021-12-07 03:37:13 +01:00
Anders Jenbo
e7728cb216 Parallel build of iOS port 2021-12-07 02:30:55 +01:00
Anders Jenbo
8192434bea [ios] Set up build process 2021-12-06 22:01:02 +01:00
Anders Jenbo
10c5cbab9f Fix and clen up macOS build 2021-12-06 16:49:22 +01:00
Gleb Mazovetskiy
28aa03ccf1 GitHub CI: Update OpenDingux toolchains 2021-12-05 17:00:23 +00:00
Gleb Mazovetskiy
93d450ab4e GitHub CI: Automatically add files to the release 2021-12-05 17:00:23 +00:00
Gleb Mazovetskiy
74b2c03793 Link SDL2::SDLmain correctly
The `SDL_main.h` header defines `main` to be `SDL_main` *when needed
by the target platform. This header must be included before defining
`main`.

The `SDL2::SDLmain` library should be linked only to the executable, not
to `libdevilutionx`.
2021-11-27 20:36:11 +01:00
Gleb Mazovetskiy
170086433b .github/workflows/src_dist_release.yml: Fix python 2021-11-26 22:26:03 +01:00
Gleb Mazovetskiy
3b45c97510 GitHub CI: Fix workflow_dispatch triggers 2021-11-26 20:50:49 +01:00
Gleb Mazovetskiy
bfa7f85163 Add a GitHub Workflow to build the source tarball
Triggered on release and can also be triggered manually.
2021-11-25 01:43:25 +00:00
Gleb Mazovetskiy
0e63b3ee0b Update clang-format-check GitHub Workflow
Taking this opportunity as we've just done a global reformat and it's
quite small.
2021-11-24 23:44:12 +01:00
Gleb Mazovetskiy
4742ba8ff5 GitHub CI: Allow triggering release actions manually 2021-11-23 23:43:07 +01:00
Gleb Mazovetskiy
15a79d3f06 OpenDingux: Use assets directly
Saves ~750 KiB.

retrofw: 4.9 MiB -> 4.1 MiB
rg350: 5.4 MiB -> 4.7 MiB
2021-11-08 22:12:36 +00:00
Gleb Mazovetskiy
5ccdbe52d4 GitHub workflow fixes
1. Adds act support. https://github.com/nektos/act
2. Fixes OpenDingux workflows

OpenDingux workflows tested with act:

    act -W .github/workflows/retrofw_release.yml -j retrofw
2021-11-08 21:40:54 +01:00
Gleb Mazovetskiy
462d24a637 OpenDingux: GitHub workflows for release builds 2021-11-07 20:09:09 +01:00
Gleb Mazovetskiy
3d308983a8 Migrate to libmpq
libmpq is a much simpler alternative to StormLib for reading MPQ archives.

We use our own fork of libmpq: https://github.com/diasurgical/libmpq

Impact:

* DevilutionX is now a lot more portable. Unlike StormLib, libmpq only
  needs platform-specific code for Windows.
* Locks around file access **removed** (instead we duplicate the file descriptor for streamed audio only).
* RAM usage is **300 KiB** lower than StormLib.
* Stripped release linux_x86_64 binary is **32 KiB** smaller.
* Amiga build now hangs instead of crashing.
2021-11-06 23:51:42 +00:00
frrsth
779c17a688 remove ttf references 2021-11-06 16:53:28 +01:00
Anders Jenbo
5a24493802 Add translations to Android test builds 2021-10-26 01:52:29 +02:00
Anders Jenbo
04b63e73bb Revert "Switch to release for Android test builds"
This reverts commit c045e4ca32.
2021-10-19 16:39:42 +02:00
Anders Jenbo
c045e4ca32
Switch to release for Android test builds
Phones will now always allow the user to install a debug package, this should make it a lot easier to install the latest test build
2021-10-16 14:22:26 -04:00
Anders Jenbo
db53bf1624 Run both checks on the same instance
This should save some time since we only have to boot up the environment once
2021-10-16 19:24:16 +02:00
Anders Jenbo
0771591cb0 Only run clang-format once per PR
Only run one instance of the check for PRs. This should save about 30 sec on build time.
2021-10-16 19:24:16 +02:00
staphen
e4a7920922 Use GitHub Actions for Android test builds 2021-10-16 18:52:20 +02:00
Anders Jenbo
6321ddb721 Generate devilutionx.mpq 2021-09-29 17:08:36 +02:00
staphen
60492ef954 Add proper graphics for gamepad 2021-09-16 19:25:31 +02:00
obligaron
f5344bd722 Add clang-format validation to CI 2021-08-11 20:52:32 +02:00
Anders Jenbo
c881e40c11 x86 2021-08-05 21:52:47 +02:00
Anders Jenbo
ceaad03905 Cache GitHub Action build folders 2021-07-06 18:38:03 -07:00
Anders Jenbo
d94dd1d746 Avoid multiple tasks per job 2021-06-27 05:35:34 -07:00
Trihedraf
9a27132ad9 Move Linux x64 back to circleci and debian:stretch-backports 2021-05-03 12:56:14 +02:00
Trihedraf
3461652e99 Move Win CircleCI builds to GitHub Actions 2021-05-03 12:56:14 +02:00
Trihedraf
7586239857 Skip duplicate actions. 2021-05-03 06:36:55 +02:00
Trihedraf
b4cf8a9aeb update build environment commands 2021-05-03 06:36:55 +02:00
Trihedraf
1bf85a1f37 add Linux_x86, Linux_x86_64, Linux_SDL1 to GH Actions 2021-05-03 06:36:55 +02:00
Lou Rinaldi
8826fd27c9
Generate Mac build artifact (#1406) 2021-04-08 16:43:56 +02:00
qndel
13b025139c Update issue templates
Require providing OS / devilutionx version
2021-02-18 14:49:44 +01:00
Anders Jenbo
8e2186cfdd
Update bug_report.md 2019-11-27 11:03:30 +01:00
Dennis Duda
c1f0812591
Added links to devilutionX and the browser port 2019-08-02 23:24:43 +02:00
Dennis Duda
386d182f35 Update issue templates 2019-08-02 22:49:23 +02:00