From 4b1a2f17c93d8c4f1aab582260e7cee9409b29a3 Mon Sep 17 00:00:00 2001 From: Tal Regev Date: Fri, 3 Sep 2021 09:22:50 +0300 Subject: [PATCH] Compile libsocket for Linux in github action ci. --- .github/workflows/build.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..2134589 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,33 @@ +name: libsocket + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + name: ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + fail-fast: false + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Configure libsocket for ${{ matrix.os }} + run: | + mkdir build && cd build + cmake .. + + - name: Build libsocket for Linux + if: success() && matrix.os == 'ubuntu-latest' + run: | + cd build + cmake --build . --target all --config Release