From 521a4dbe03f37b4bc1284cf6ad752c5277c8dacd Mon Sep 17 00:00:00 2001 From: Alan Antonuk Date: Thu, 10 Dec 2020 20:11:43 -0800 Subject: ci: add github actions config Adds a github actions config that builds using cmake. --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ travis.sh | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml 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 diff --git a/travis.sh b/travis.sh index 1908074..6ae5cf0 100755 --- a/travis.sh +++ b/travis.sh @@ -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 . -- cgit v1.2.1