From 2adfb03b12c29e47757add3f358919272f3d6128 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Fri, 12 Jul 2024 17:08:32 +0900 Subject: [PATCH] Update github workflow to use conan --- .github/workflows/unittests.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index 9a4478c..1589104 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -9,10 +9,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Install dependencies - run: sudo /usr/bin/env DEBIAN_FRONTEND=noninteractive apt-get install cmake git libsodium-dev + 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: Build sources - run: cd UDPC && cmake -S . -B buildDebug -DCMAKE_BUILD_TYPE=Debug && make -C buildDebug + - 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: ./UDPC/buildDebug/UnitTest + run: find buildConan -name UnitTest -execdir './{}' ';'