UDPConnection/.forgejo/workflows/unittests.yml
Stephen Seo 7d73f4eb8a
Some checks failed
Run UnitTests / build-and-run-tests (push) Failing after 25s
Update forgejo workflow to use libsodium
2024-07-12 16:48:41 +09:00

20 lines
664 B
YAML

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