diff options
author | Alan Antonuk <alan.antonuk@gmail.com> | 2020-12-10 20:11:43 -0800 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2020-12-24 09:41:41 -0800 |
commit | 521a4dbe03f37b4bc1284cf6ad752c5277c8dacd (patch) | |
tree | 64d303b42477c6aa2cc7cb0ab80fe00443d21556 | |
parent | 52a6c129eba1b8840dde43cfbbe2137796e793b6 (diff) | |
download | rabbitmq-c-521a4dbe03f37b4bc1284cf6ad752c5277c8dacd.tar.gz |
ci: add github actions config
Adds a github actions config that builds using cmake.
-rw-r--r-- | .github/workflows/ci.yml | 30 | ||||
-rwxr-xr-x | travis.sh | 2 |
2 files changed, 31 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..348776e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - compiler: gcc + config: cmake + - compiler: clang + config: cmake + - compiler: clang + config: asan + - compiler: clang + config: tsan + + steps: + - uses: actions/checkout@v2 + with: + submodules: true + + - name: Configure Build & Test + shell: bash + env: + CC: ${{ matrix.compiler }} + run: ./travis.sh ${{ matrix.config }}
\ No newline at end of file @@ -2,7 +2,7 @@ build_cmake() { mkdir $PWD/_build && cd $PWD/_build - cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/../_install -DCMAKE_C_FLAGS="-Werror" \ + cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/../_install -DCMAKE_C_FLAGS="-Werror -Wno-implicit-fallthrough" \ ${_CMAKE_OPENSSL_FLAG} cmake --build . --target install ctest -V . |