From c96dc8983d51c6aae351384e874bd3df7d8d5abb Mon Sep 17 00:00:00 2001 From: SChernykh Date: Sat, 4 Sep 2021 09:40:20 +0200 Subject: [PATCH] Create c-cpp.yml --- .github/workflows/c-cpp.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/c-cpp.yml diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 0000000..0128eef --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,36 @@ +name: C/C++ CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Install dependencies + run: sudo apt update && sudo apt install git build-essential cmake libuv1-dev libzmq3-dev libsodium-dev libpgm-dev libnorm-dev libgss-dev + + - name: Checkout repository + uses: actions/checkout@v2 + with: + submodules: true + + - name: cmake p2pool + run: mkdir build && cd build && cmake .. + + - name: make p2pool + run: cd build && make + + - name: cmake tests + run: cd tests && mkdir build && cd build && cmake .. + + - name: make tests + run: cd tests/build && make + + - name: run tests + run: cd tests/build && ./p2pool_tests