UDPConnection/.forgejo/workflows/unittests.yml

21 lines
652 B
YAML
Raw Normal View History

2024-01-12 05:06:14 +00:00
name: Run UnitTests
on:
push:
branches:
- '*'
jobs:
build-and-run-tests:
runs-on: docker_arch
2024-01-12 05:06:14 +00:00
steps:
- run: pacman -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
name: Get repository
2024-01-12 05:06:14 +00:00
- run: cd UDPC && git checkout $GITHUB_REF_NAME
name: Checkout git repository
2024-01-12 05:06:14 +00:00
- run: cd UDPC && cmake -S . -B buildDebug -DCMAKE_BUILD_TYPE=Debug
name: Configure with CMake
2024-01-12 05:06:14 +00:00
- run: make -C UDPC/buildDebug && ./UDPC/buildDebug/UnitTest
name: Build and test