diff options
author | Wolfgang E. Sanyer <WolfgangSanyer@Google.com> | 2022-01-29 03:29:50 +0000 |
---|---|---|
committer | Alex Chernyakhovsky <achernya@mit.edu> | 2022-02-04 11:08:30 -0500 |
commit | 179e1d9f568bf79ea3265323137f60f64b9e5327 (patch) | |
tree | 3b182e00e94cf06588fc4c95cd910fc0ec405b57 /.github | |
parent | 378dfa6aa5778cf168646ada7f52b6f4a8ec8e41 (diff) |
Add github action for CI build
Signed-off-by: Wolfgang E. Sanyer <WolfgangSanyer@Google.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..579b3bd --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: ci + +on: [push, pull_request] + +jobs: + build: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [macos-latest, ubuntu-18.04, ubuntu-20.04] + + steps: + - uses: actions/checkout@v2 + + - name: "setup linux build environment" + if: ${{ startsWith(matrix.os, 'ubuntu') }} + run: sudo apt install -y protobuf-compiler libprotobuf-dev libutempter-dev autoconf automake + + - name: "setup macos build environment" + if: ${{ startsWith(matrix.os, 'macos') }} + run: brew install protobuf automake + + - name: "generate build scripts" + run: ./autogen.sh + + - name: "configure" + run: ./configure --enable-compile-warnings=error --enable-examples + + - name: "build" + run: make V=1 + + - name: "test" + run: make V=1 check |