diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 0000000..5cc6e13 --- /dev/null +++ b/.github/workflows/linux.yml @@ -0,0 +1,39 @@ +name: Linux + +on: [push, pull_request] + +jobs: + gcc10: + runs-on: ubuntu-latest + strategy: + matrix: + cppstd: [03, 11, 20] + buildtype: ["cmake"] + drafts: ["ON"] + libzmq: ["4.3.4"] + include: + - cppstd: 11 + buildtype: "pkgconfig" + drafts: "ON" + libzmq: "4.2.0" + - cppstd: 20 + buildtype: "cmake" + drafts: "OFF" + libzmq: "4.3.4" + + steps: + - uses: actions/checkout@v1 + - name: install_deps + run: | + sudo apt update + sudo apt install gcc-10 g++-10 + shell: bash + - name: build + run: ./ci_build.sh + env: + CC: gcc-10 + CXX: g++-10 + CMAKE_CPP_STD: DCMAKE_CXX_STANDARD=${{ matrix.cppstd }} + BUILD_TYPE: ${{ matrix.buildtype }} + ENABLE_DRAFTS: ${{ matrix.drafts }} + ZMQ_VERSION: ${{ matrix.libzmq }} diff --git a/ci_build.sh b/ci_build.sh index cb182c4..262559f 100755 --- a/ci_build.sh +++ b/ci_build.sh @@ -4,7 +4,7 @@ set -x set -e BUILD_TYPE=${BUILD_TYPE:-cmake} -ZMQ_VERSION=${ZMQ_VERSION:-4.3.1} +ZMQ_VERSION=${ZMQ_VERSION:-4.3.4} ENABLE_DRAFTS=${ENABLE_DRAFTS:-OFF} COVERAGE=${COVERAGE:-OFF} LIBZMQ=${PWD}/libzmq-build