From 6c03859cf1b4f654dfe8554e87aaeb10ada303e9 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Mon, 15 Jan 2024 13:55:34 +0900 Subject: [PATCH 1/5] Add forgejo action to generate doxygen docs --- .forgejo/workflows/doxygen.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .forgejo/workflows/doxygen.yaml diff --git a/.forgejo/workflows/doxygen.yaml b/.forgejo/workflows/doxygen.yaml new file mode 100644 index 0000000..4c6f402 --- /dev/null +++ b/.forgejo/workflows/doxygen.yaml @@ -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/ From a3cd26f5292d69b84459dd20125f8e985b07192f Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Mon, 15 Jan 2024 13:56:49 +0900 Subject: [PATCH 2/5] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 9d8fe13..01da37e 100644 --- a/README.md +++ b/README.md @@ -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. From 0b0c1eb213ca133f55881509730bee77fab14aca Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Wed, 17 Jan 2024 18:57:29 +0900 Subject: [PATCH 3/5] Add forgejo action to run unit tests --- .forgejo/workflows/unittests.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .forgejo/workflows/unittests.yml diff --git a/.forgejo/workflows/unittests.yml b/.forgejo/workflows/unittests.yml new file mode 100644 index 0000000..cfc83a0 --- /dev/null +++ b/.forgejo/workflows/unittests.yml @@ -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 From 222639ec3a84b2a7e067e2933f735ae083b37e61 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Wed, 17 Jan 2024 19:02:51 +0900 Subject: [PATCH 4/5] Update CMakeLists.txt cmake version --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6b2976c..72f4c39 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0) +cmake_minimum_required(VERSION 3.22) project(EntityComponentSystem) set(EntityComponentSystem_HEADERS From 599ebca19644d1624af75bdc27d769dcfd5d9200 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Wed, 17 Jan 2024 19:22:20 +0900 Subject: [PATCH 5/5] Add github action to run UnitTests --- .github/workflows/unittests.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/unittests.yml diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml new file mode 100644 index 0000000..977425c --- /dev/null +++ b/.github/workflows/unittests.yml @@ -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