Compare commits

...

3 commits

Author SHA1 Message Date
Stephen Seo b781257a17 Github action: ensure current ref is checked out
All checks were successful
Publish doxygen documentation to seodisparate.com / doxygen-gen-and-publish (push) Successful in 1s
Run UnitTests / build-and-run-tests (push) Successful in 21s
2024-01-12 14:31:36 +09:00
Stephen Seo 5de9fcfb22 Use apt-get, add libsodium dep to github action 2024-01-12 14:29:49 +09:00
Stephen Seo 6634a0bfdb Add Github action to run UnitTests 2024-01-12 14:26:11 +09:00

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

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