UDPConnection/.forgejo/workflows/conan_unittests.yml
Stephen Seo 2bb283e335
All checks were successful
Run UnitTests / build-and-run-tests (push) Successful in 4m48s
Minor tweaks to actions/workflows files (unittest)
2024-07-13 11:43:01 +09:00

28 lines
1.1 KiB
YAML

name: Run UnitTests
on:
push:
branches:
- 'conan'
jobs:
build-and-run-tests:
runs-on: docker_arch
steps:
- 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
- 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: 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