From f4069778e068657536f717a3835f8171400ea026 Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Mon, 6 May 2024 10:34:11 +0100 Subject: [PATCH] main.yml: Add in github workflow build --- .github/workflows/main.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 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 0000000..5600ba7 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,37 @@ +name: Build Tests + +on: + push: + branches: + - main + - develop + - release-* + - gh-workflows + pull_request: + branches: + - main + - develop + +env: + PLATFORM: posix + TESTS: yes + +jobs: + build-linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: setup + run: | + sudo apt-get update && sudo apt-get install -y libtool libtool-bin exuberant-ctags + - name: configure / build / install libcoap + run: | + git clone https://github.com/obgm/libcoap.git + cd libcoap + ./autogen.sh + ./configure --with-openssl --disable-documentation --disable-doxygen --disable-man --disable-tests --disable-examples --disable-license-install + make + sudo make install + - name: build minimal + run: | + LIBCOAP=libcoap-3-openssl make