From 5bcb0a15780f825c83566da4ea1e4fd1b3e60745 Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Fri, 22 Jan 2021 15:21:19 +0100 Subject: [PATCH] Revert ".github: removed consistently failing github workflow" This reverts commit 610c3f6bf20af053738acf003f4fa2edc0c5e232. --- .github/workflows/main.yml | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..865605e1 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,48 @@ +name: CMake + +on: [push, pull_request] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + BUILD_SHARED_LIBS: ["ON", "OFF"] + ENABLE_DTLS: ["ON", "OFF"] + ENABLE_TCP: ["ON", "OFF"] + DTLS_BACKEND: ["openssl", "gnutls", "mbedtls", "tinydtls"] + + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + - name: setup (linux) + if: startsWith(matrix.os, 'ubuntu') + run: | + sudo apt-get update && sudo apt-get install libcunit1-dev libmbedtls-dev libgnutls28-dev + + - name: Create Build Environment + run: cmake -E make_directory ${{runner.workspace}}/build + + - name: Configure CMake + shell: bash + working-directory: ${{runner.workspace}}/build + run: | + cmake $GITHUB_WORKSPACE \ + -DENABLE_EXAMPLES=ON \ + -DENABLE_TESTS=ON \ + -DBUILD_SHARED_LIBS=${{matrix.BUILD_SHARED_LIBS}} \ + -DENABLE_DTLS=${{matrix.ENABLE_DTLS}} \ + -DENABLE_TCP=${{matrix.ENABLE_TCP}} \ + -DDTLS_BACKEND=${{matrix.DTLS_BACKEND}} + + - name: Build + working-directory: ${{runner.workspace}}/build + shell: bash + run: cmake --build . + # TODO: add tests to the pipeline + # - name: Test + # working-directory: ${{runner.workspace}}/build + # shell: bash + # run: ctest .