2024-01-12 05:26:11 +00:00
|
|
|
name: Run UnitTests
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-07-13 02:38:52 +00:00
|
|
|
- 'conan'
|
2024-01-12 05:26:11 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-and-run-tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Install dependencies
|
2024-07-12 08:08:32 +00:00
|
|
|
run: sudo /usr/bin/env DEBIAN_FRONTEND=noninteractive apt-get install cmake git python3
|
2024-01-12 05:26:11 +00:00
|
|
|
- name: Get sources
|
2024-01-12 05:31:36 +00:00
|
|
|
run: git clone --depth=1 --no-single-branch https://github.com/Stephen-Seo/UDPConnection.git UDPC && cd UDPC && git checkout $GITHUB_REF_NAME
|
2024-07-12 08:08:32 +00:00
|
|
|
- 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
|
2024-01-12 05:26:11 +00:00
|
|
|
- name: Run tests
|
2024-07-12 08:08:32 +00:00
|
|
|
run: find buildConan -name UnitTest -execdir './{}' ';'
|