From 7b3c982d8c5d749ea08e57e1c8c5fb20ce2d35e6 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Wed, 1 May 2024 13:47:33 +0900 Subject: [PATCH] Add UnitTest workflow --- .forgejo/workflows/unittest.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .forgejo/workflows/unittest.yml diff --git a/.forgejo/workflows/unittest.yml b/.forgejo/workflows/unittest.yml new file mode 100644 index 0000000..212a625 --- /dev/null +++ b/.forgejo/workflows/unittest.yml @@ -0,0 +1,15 @@ +name: Run UnitTest +on: + push: + branches: + - '*' + +jobs: + build-and-run-UnitTest: + runs-on: any_archLinux + steps: + - run: git clone --depth=1 --no-single-branch https://git.seodisparate.com/stephenseo/3d_collision_helpers.git 3dchelpers + - run: cd 3dchelpers && git checkout $GITHUB_REF_NAME + - run: cd 3dchelpers && cmake -S . -B buildDebug + - run: make -C 3dchelpers/buildDebug + - run: ./3dchelpers/buildDebug/UnitTest