UDPConnection/.forgejo/workflows/unittests.yml

29 lines
1.1 KiB
YAML
Raw Normal View History

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-key --init && pacman-key --populate
name: Init pacman keyring
- run: pacman --noconfirm --needed -Sy archlinux-keyring
name: Update pacman keyring
- run: pacman --noconfirm --needed -Su git cmake libsodium python
name: Update and get dependencies
- run: python -m venv conan_venv && source conan_venv/bin/activate && pip install conan
name: Get conan
- run: source conan_venv/bin/activate && conan profile detect --force
name: Set up conan profile
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
- run: source conan_venv/bin/activate && conan build UDPC -of buildConan --settings=build_type=Debug --build=missing
name: Build with conan
- run: find buildConan -name UnitTest -execdir './{}' ';'
name: Test