solanum/.github/workflows/ci.yml

70 lines
1.4 KiB
YAML
Raw Normal View History

name: CI
on:
push:
branches:
- main
paths-ignore:
- 'doc/oper-guide/**'
- 'CREDITS'
- 'LICENSE'
- 'NEWS.md'
- 'README.md'
pull_request:
branches:
- main
paths-ignore:
- 'doc/oper-guide/**'
- 'CREDITS'
- 'LICENSE'
- 'NEWS.md'
- 'README.md'
jobs:
linux:
name: Linux
2020-12-17 17:02:36 +00:00
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
2020-12-17 17:02:36 +00:00
os:
- ubuntu-18.04
compiler:
- gcc-6 # Debian 9 (OFTC)
- gcc-7
- gcc-8
- clang-7
- clang-8
2020-12-17 17:02:36 +00:00
include:
- os: ubuntu-20.04
compiler: gcc-10
env:
CC: ${{ matrix.compiler }}
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
${CC} \
automake \
autoconf \
libtool \
libsqlite3-dev \
libhyperscan-dev \
# EOF
- uses: actions/checkout@v2
- name: autogen.sh
run: bash autogen.sh
- name: configure
run: CFLAGS="-Werror -Wno-unused-value -Wno-unused-parameter" ./configure --enable-assert=hard --enable-warnings
- name: make
run: make -j2
- name: make check
run: make check
- name: make install
run: make install