Commit Graph

22 Commits

Author SHA1 Message Date
Anonymous Maarten ee032df264
Fix MSVC tests + add mingw support (#65)
* Include windows.h before imagehlp.h

This fixes a long list of undefined type errors when building with mingw (on Linux).

* Remove matherr function

This function is provided by the c library.

* Use GetFileAttributesA to filter files

dirent->d_type is not available in all implementation.
Posix only mandates the fields d_name and d_ino.

* Use FindOpenGL.cmake to get the opengl library

Mingw has no libGL.so, but has libopengl32.a. Use the CMake module to abstract this away.

* harness needs to link to dbghelp

This fixes undefined references to:
__imp_SymInitialize, __imp_SymGetModuleBase64,
__imp_SymFunctionTableAccess64, __imp_StackWalk64 and __imp_SymCleanup.

* Don't add -g to compile options.

CMAKE_BUILD_TYPE=(Debug|RelWithDebInfo) takes care of this

* Set test file name before running tests in suite.

This causes the message to contain the correct file name where an assertion failed/succeeded.

* Use wrapper to sleep for number on seconds in tests

sleep on Windows expects milliseconds.
sleep on Posix expects seconds.

* Use char* instead of void*

MSVC complained that it couldn't determine the size of void

* Don't test state of removed resource after deletion when building Debug

When building in Debug configuration, the compiler may mark deleted memory ranges with some value.
Therefore, we cannot expect deleted memory to remain unchanged.
(MSVC in Debug mode does this)

* Use helper to get system temporary folder.

Using /tmp on Windows failed hard.

* Header containing sse3 intrinsics is pmmintrin.h

See https://github.com/recp/cglm/pull/234

* Add errno.h include for ENOTSUP

* Fix test_utility_GetALineWithNoPossibleService: avoid strcpy of uninitialized s

Found by running the tests with CMAKE_BUILD_TYPE=Debug with MSVC

* Add mingw@Linux and mingw@Windows jobs to github workflow

* Rename build-windows.ps1 script to build-msvc.ps1.

Also bump the versions of SDL2 and ninja, used in this script.

* Run tests in github jobs running on Windows

Co-authored-by: Dethrace Engineering Laboratory <78985374+dethrace-labs@users.noreply.github.com>
2022-01-20 13:17:10 +13:00
Jeff Harris 707d1ee0b5 Fix windows workflow artifact path 2021-04-14 10:13:16 +12:00
Jeff Harris 5f8f20cda3
Workflow #2 (#48)
* Workflow changes #2
2021-04-14 09:46:31 +12:00
Jeff Harris e13d327f7c workflow: tag release 11 2021-04-14 08:30:50 +12:00
Jeff Harris b435e49f2b workflow: tag release 9 2021-04-14 08:21:00 +12:00
Jeff Harris 971bd31e4e workflow: tag release 8 2021-04-14 06:56:01 +12:00
Jeff Harris 4d8ed45c67 workflow: tag release 7 2021-04-14 06:54:37 +12:00
Jeff Harris 88d31399bc workflow: tag release 6 2021-04-14 06:39:07 +12:00
Jeff Harris eaca67a0c5 workflow: tag release 5 2021-04-14 06:36:27 +12:00
Jeff Harris fa9313c39b workflow: tag release 4 2021-04-14 06:35:20 +12:00
Jeff Harris 0c9e0124f8 workflow: tag release 3 2021-04-14 06:23:46 +12:00
Jeff Harris c921170883 workflow: tag release 2 2021-04-14 06:15:01 +12:00
Jeff Harris 66ced04915 workflow: tag release 2021-04-14 06:11:35 +12:00
Jeff Harris baafd76a09
Workflow test (#47)
* Adds first test of create release when tag is pushed
* fix pixelmap read warnings
2021-04-14 06:01:19 +12:00
Jeff Harris 43f517234d
Set Initial Grid Position (#46)
* Implements SetInitialPosition, fixed prepareGroups vertices
2021-04-13 14:04:03 +12:00
Jeff Harris 1ce611e9d8
Implements load race screen and grid selection screens! (#45)
* Load Race screen
* Grid Selection screen
* Loads race objects into memory
2021-03-25 06:51:35 +13:00
OmniBlade d1232abceb Refactors CMake to allow buildings tests.
Adds running of tests to the linux and macos workflows.
Tests themselves need some refactoring to pass on windows.
2021-03-12 15:49:29 +00:00
OmniBlade 4753c28593 Adds github workflows to test builds using CMake.
Builds 32bit and 64bit windows binaries.
Builds 64bit binaries with both clang and gcc on linux.
Builds 64bit macos binaries.
2021-03-12 15:49:29 +00:00
Jeff Harris 0246c1de7f
Feature/renderer (#29)
* Adds first cut of GL renderer
* Adds harness: where we add modern code to interface with the original game code
2020-07-06 00:45:08 -07:00
Jeff Harris 60309ba905
Load fonts, pixelmaps, materials (#28)
* load fonts, pixelmaps, shadetables, materials
2020-06-29 21:20:03 -07:00
Jeff Harris b04c31139f
Adds unit tests, some more implementations (#14)
* unit tests, some implementations
2019-11-24 21:19:15 -08:00
Jeff Harris c353223407
Adds make action 2019-10-30 21:45:38 -07:00