Compare commits

..

1 commit

Author SHA1 Message Date
b4525fdd41 Update forgejo workflow to use libsodium
All checks were successful
Run UnitTests / build-and-run-tests (push) Successful in 1m21s
2024-07-12 17:03:08 +09:00

View file

@ -9,14 +9,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Install dependencies - name: Install dependencies
run: sudo /usr/bin/env DEBIAN_FRONTEND=noninteractive apt-get install cmake git libsodium-dev python run: sudo /usr/bin/env DEBIAN_FRONTEND=noninteractive apt-get install cmake git libsodium-dev
- name: Get sources - 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 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 - name: Build sources
run: python -m venv venv_conan && source venv_conan/bin/activate && pip install conan run: cd UDPC && cmake -S . -B buildDebug -DCMAKE_BUILD_TYPE=Debug && make -C buildDebug
- 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 - name: Run tests
run: find buildConan -name UnitTest -execdir './{}' ';' run: ./UDPC/buildDebug/UnitTest