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/ 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 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 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. diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 18d02e1..86242ec 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