UDPConnection/.github/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

22 lines
900 B
YAML

name: Run UnitTests
on:
push:
branches:
- 'conan'
jobs:
build-and-run-tests:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: sudo /usr/bin/env DEBIAN_FRONTEND=noninteractive apt-get install cmake git python3
- name: Get sources
run: git clone --depth=1 --no-single-branch https://github.com/Stephen-Seo/UDPConnection.git UDPC && cd UDPC && git checkout $GITHUB_REF_NAME
- name: Get Conan
run: python -m venv venv_conan && source venv_conan/bin/activate && pip install conan
- name: Set up conan
run: source venv_conan/bin/activate && conan profile detect --force
- name: Build with conan
run: source venv_conan/bin/activate && conan build UDPC -of buildConan --settings=build_type=Debug --build=missing
- name: Run tests
run: find buildConan -name UnitTest -execdir './{}' ';'