2024-01-12 05:06:14 +00:00
|
|
|
name: Run UnitTests
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-and-run-tests:
|
2024-07-12 07:46:31 +00:00
|
|
|
runs-on: docker_arch
|
2024-01-12 05:06:14 +00:00
|
|
|
steps:
|
2024-07-12 07:46:31 +00:00
|
|
|
- run: pacman --noconfirm -Syu git cmake libsodium
|
|
|
|
name: Update and get dependencies
|
2024-01-12 05:06:14 +00:00
|
|
|
- run: git clone --depth=1 --no-single-branch https://git.seodisparate.com/stephenseo/UDPConnection.git UDPC
|
2024-07-12 07:46:31 +00:00
|
|
|
name: Get repository
|
2024-01-12 05:06:14 +00:00
|
|
|
- run: cd UDPC && git checkout $GITHUB_REF_NAME
|
2024-07-12 07:46:31 +00:00
|
|
|
name: Checkout git repository
|
2024-01-12 05:06:14 +00:00
|
|
|
- run: cd UDPC && cmake -S . -B buildDebug -DCMAKE_BUILD_TYPE=Debug
|
2024-07-12 07:46:31 +00:00
|
|
|
name: Configure with CMake
|
2024-01-12 05:06:14 +00:00
|
|
|
- run: make -C UDPC/buildDebug && ./UDPC/buildDebug/UnitTest
|
2024-07-12 07:46:31 +00:00
|
|
|
name: Build and test
|