Commit Graph

48 Commits

Author SHA1 Message Date
binary1248
6ca627ee9d Manually upload coverage report instead of using codecov-action. 2023-03-19 16:21:55 -06:00
Chris Thrasher
0b62543942 Don't automatically run tests after build
The runtests target must be used on Windows for the sake of code
coverage. However we can't use that target on all other platforms
because on some non-Windows platforms like Android, the tests don't
even get configured. If you try to build a target that doesn't exist
you get a hard failure. Using CTest is better because it will still
return zero even if no tests are found as is the case on Android.
2023-03-14 20:23:17 -06:00
Chris Thrasher
b6c54ac589 Use unity builds to speed up clang-tidy runtime 2023-03-14 10:08:23 -06:00
binary1248
42a53cfb1d Make use of CODECOV_TOKEN in ci.yml in order to work around Github Actions API errors that occur. 2023-03-07 10:03:34 +01:00
Chris Thrasher
0e1d33f910 Test install interface with frameworks 2023-02-17 00:28:58 -07:00
Chris Thrasher
7c825b182f
Test install interface for Static DRM builds 2023-02-09 20:24:58 -07:00
Chris Thrasher
ef20b58895 Enable display tests for non-DRM Linux builds
I think this was an oversight. These jobs already run with xvfb-run
so we ought to be including the display-dependent tests.
2023-02-08 00:22:42 -07:00
Chris Thrasher
218fccd926 Don't install CMake on Android 2023-01-30 17:27:45 -07:00
Chris Thrasher
401615f5e6 Use Ninja in CI 2023-01-29 11:14:10 -07:00
Chris Thrasher
84f56d0936 Add option for skipping tests that require an attached display 2023-01-18 16:06:00 -07:00
Chris Thrasher
9265607d79 Run Linux tests with dummy display
This lets us test certain classes like sf::Texture which will otherwise
fail if a display is not detected.
2023-01-18 16:06:00 -07:00
Chris Thrasher
cab0e75503 Run clang-tidy on Windows in CI
Co-authored-by: Bambo-Borris <canyoufeelit4@gmail.com>
2023-01-14 15:13:02 -07:00
Chris Thrasher
8b7429b9c0 Analyze DRM backend 2023-01-13 14:16:25 -07:00
Chris Thrasher
e8fa5d7d31
Add CI job for Clang on Windows 2022-12-14 15:26:08 -07:00
Chris Thrasher
3b6db4d18c Enforce variable case 2022-12-12 16:10:03 -07:00
Chris Thrasher
c5bd4a4063 Run all formatting jobs on Ubuntu 22.04 2022-11-27 13:39:40 -06:00
Jonny
8e3efab09d
Retry choco install step up to 10 times
With a timeout of 3min
2022-11-23 08:35:31 +01:00
Christian Ivicevic
a9f33999dc
Fix outdated use of the sf::VideoMode constructor 2022-11-22 14:55:52 +01:00
Jan Haller
0e16627677 Turn off Codecov annotations
Those annotations create enormous clutter in diff views on GitHub, making PR reviews complicated.
Since we are currently not headed toward 100% coverage, they provide little benefit.
2022-10-28 16:36:50 +02:00
Lukas Dürrenberger
d4d518e1be Merge branch '2.6.x' into master 2022-10-25 19:17:35 +02:00
Chris Thrasher
c1064bae92 Lock 2.6.x branch to macOS 11 images
The macos-latest image recently upgraded to macOS 12. This includes
the iOS 16 SDK which deprecates some features which we're using. The
short term fix is to just keep using macOS 11 for 2.6.x.
2022-10-25 18:18:46 +02:00
Lukas Dürrenberger
3af9168d03 Add 32-bits Visual Studio builds to the CI 2022-10-19 14:38:42 +02:00
Chris Thrasher
80b45d4725 Add custom target for running clang-tidy 2022-10-17 18:29:56 -06:00
Chris Thrasher
fc61f2469d Update code coverage action 2022-10-16 16:14:03 -06:00
Chris Thrasher
e0b6053b15 Update checkout action 2022-10-16 16:14:03 -06:00
Chris Thrasher
e4f81af337 Test install interface
Skip Android, iOS, and Framework builds simply because I can't get
them to work and don't want that holding up getting the rest of the
install tests merged.

Skip the Static DRM install test because there's a bug in the install
that needs to be fixed.
2022-10-15 09:07:49 +02:00
Chris Thrasher
a5dbe59f07
Merge branch '2.6.x' 2022-10-13 14:33:11 -06:00
Jonny Paton
0b4d9ca822 Test Xcode generator in CI 2022-09-26 23:50:26 +02:00
Waldegger
308857702e
Add Android dependency binaries for x86_64 and arm64-v8a architectures
* Remove unused libFLAC++.a for all Android architectures
* Enhance GitHub Actions builds

Co-authored-by: Waldegger <Stefan.Waldegger@users.noreply.github.com>
2022-07-19 08:03:16 +02:00
metaquarx
88e9f82bee Add '.clang-format' file, CI integration, and formatting exceptions
Co-authored-by: Vittorio Romeo <vittorio.romeo@outlook.com>
Co-authored-by: Chris Thrasher <chrisjthrasher@gmail.com>
Co-authored-by: kimci86 <kimci86@hotmail.fr>
2022-07-11 20:04:56 +02:00
Lukas Dürrenberger
b158bc1f94 Add a VS 2022 with Clang build 2022-06-12 17:40:01 +02:00
Chris Thrasher
dbac180db5 Limit the scope of event object 2022-06-08 13:16:40 +02:00
Lukas Dürrenberger
9a6142bd22 Merge branch '2.6.x' 2022-04-27 08:12:25 +02:00
Radek Dutkiewicz
b6ca47e128 DRM Implementation
Ported sfml-pi DRM/KMS backend written by @mickelson 
Port co-authored by @substring

Co-authored-by: Andrew Mickelson <andrew.mickelson@gmail.com>
Co-authored-by: Gil Delescluse <frog2wah@gmail.com>
2022-04-26 07:44:14 +02:00
Chris Thrasher
a302a9829e Ensure files end with newline character 2022-04-12 08:13:48 +02:00
Lukas Dürrenberger
2837b3623b Remove VS 2017 as GitHub Actions compiler
VS 2017 doesn't fully support C++17
2022-04-05 09:35:29 +02:00
Lukas Dürrenberger
fe3a7fc21e Add support for VS 2022 to the GitHub Actions workflow 2022-04-05 09:35:29 +02:00
kimci86
fab2c93d7a Simplify CI workflow 2022-02-20 17:00:43 +01:00
Jakub 'Eremiell' Marek
1334e3c466 Update Android NDK to r23b
This commit updates the NDK version to latest available at the
time.

The expectation from this change is to resolve issues with code
modernisation and to allow us to use C++ 17 features on Android.

This shouldn't affect devices supported as we're not changing the
API level.

For more details see:
https://developer.android.com/ndk/downloads/revision_history
2022-02-17 00:40:29 +00:00
binary1248
d7f48d15c6 Adjust .codecov.yml to make coverage have minimal impact for now. 2022-02-10 21:05:13 +01:00
binary1248
66339bc09c Added support for coverage reporting. 2022-02-10 08:08:47 +01:00
Lukas Dürrenberger
ef8d6ee7f7 Remove VS 2017 as GitHub Actions compiler
VS 2017 doesn't fully support C++17
2022-02-05 19:11:15 +01:00
Lukas Dürrenberger
60deef9997 Add support for VS 2022 to the GitHub Actions workflow 2022-01-20 10:53:52 +01:00
Vittorio Romeo
f162b3a037 Enable support for unity builds 2021-08-12 21:00:16 +02:00
Lukas Dürrenberger
b762276a27 Change GitHub Actions failure mode
When a single GitHub Action build fails, the other builds should not be
canceled, but instead should continue to build.
Since the matrix is setup on OS level, a failing build on one OS usually
doesn't mean it's broken for all OS.
2021-02-19 20:48:28 +01:00
Lukas Dürrenberger
3a95fdee35 Add apt-get update command for the CI
If the apt-get cache is outdated, it may end up trying to fetch a
package that no longer exists, so the cache needs to be updated.
2020-11-29 15:36:13 +01:00
MrZeusTheCoder
c10c458169 Add Github Actions. 2020-11-20 09:19:28 +01:00
Lukas Dürrenberger
4c4e961f39 Added GitHub issue and PR templates
GitHub will use these templates to pre-fill created issues and
pull requests. This should help to get people to provide better
information on issues or direct them to the forum when needed and
hint people to provide example/test code for pull requests.
2018-04-28 15:38:22 +02:00