ci: add clang build

This commit is contained in:
Christian Göttsche 2020-08-25 11:56:26 +02:00
parent 4e2b9f0965
commit fc4f74aa47
1 changed files with 23 additions and 1 deletions

View File

@ -16,7 +16,29 @@ jobs:
- name: Build - name: Build
run: make run: make
- name: Distcheck - name: Distcheck
run: make distcheck run: make distcheck DISTCHECK_CONFIGURE_FLAGS=--enable-werror
build-ubuntu-clang-latest:
runs-on: ubuntu-latest
env:
CC: clang-10
steps:
- uses: actions/checkout@v2
- name: install clang repo
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key 2>/dev/null | sudo apt-key add -
sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main' -y
sudo apt-get update -q
- name: Install Dependencies
run: sudo apt-get install clang-10 libncursesw5-dev
- name: Bootstrap
run: ./autogen.sh
- name: Configure
run: ./configure --enable-werror
- name: Build
run: make
- name: Distcheck
run: make distcheck DISTCHECK_CONFIGURE_FLAGS=--enable-werror
whitespace_check: whitespace_check:
runs-on: ubuntu-latest runs-on: ubuntu-latest