Merge branch 'master' into cxx17
All checks were successful
Run UnitTests / build-and-run-unittests (push) Successful in 14s

This commit is contained in:
Stephen Seo 2024-01-19 15:21:45 +09:00
commit 7894955ff5
5 changed files with 49 additions and 1 deletions

View file

@ -0,0 +1,14 @@
name: Publish doxygen documentation to seodisparate.com
on:
push:
branches:
- 'master'
jobs:
doxygen-gen-and-publish:
runs-on: archLinux
steps:
- run: git clone --depth=1 --no-single-branch https://git.seodisparate.com/stephenseo/EntityComponentMetaSystem.git ECMS
- run: cd ECMS && git checkout master
- run: cd ECMS && doxygen
- run: rsync -r --delete ECMS/doxygen_html/html/ /srv/http/ECMS_docs/

View file

@ -0,0 +1,14 @@
name: Run UnitTests
on:
push:
branches:
- '*'
jobs:
build-and-run-unittests:
runs-on: archLinux
steps:
- run: git clone --depth=1 --no-single-branch https://git.seodisparate.com/stephenseo/EntityComponentMetaSystem.git ECMS
- run: cd ECMS && git checkout $GITHUB_REF_NAME
- run: cd ECMS && cmake -S src -B buildDebug -DCMAKE_BUILD_TYPE=Debug
- run: make -C ECMS/buildDebug && ./ECMS/buildDebug/UnitTests

18
.github/workflows/unittests.yml vendored Normal file
View file

@ -0,0 +1,18 @@
name: Run UnitTests
on:
push:
branches:
- '*'
jobs:
build-and-run-unittests:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: sudo /usr/bin/env DEBIAN_FRONTEND=noninteractive apt-get install libgtest-dev cmake
- name: Get sources
run: git clone --depth=1 --no-single-branch https://github.com/Stephen-Seo/EntityComponentMetaSystem.git ECMS && cd ECMS && git checkout $GITHUB_REF_NAME
- name: Build UnitTests
run: cd ECMS && cmake -S src -B buildDebug -DCMAKE_BUILD_TYPE=Debug && make -C buildDebug
- name: Run UnitTests
run: ./ECMS/buildDebug/UnitTests

View file

@ -9,6 +9,8 @@ built and run using cmake (gtest is a dependency).
[Check this repository's gh-pages documentation on ECMS](https://stephen-seo.github.io/EntityComponentMetaSystem/)
[Alternatively, check out the doxygen docs hosted on my website](https://seodisparate.com/ecms_docs/)
# Compiling the UnitTests
Create a build directory.

View file

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.22)
project(EntityComponentSystem)
set(EntityComponentSystem_HEADERS