Clang Analysis #173
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Clang Analysis | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
schedule: | |
- cron: '0 11 * * 6' | |
permissions: {} | |
jobs: | |
clang: | |
name: Clang Analysis (--${{ matrix.mmsg }} --${{ matrix.bpf }}) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
mmsg: | |
- enable-mmsg | |
- disable-mmsg | |
bpf: | |
- enable-bpf | |
- disable-bpf | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install additional packages | |
run: | | |
sudo apt-get -y update | |
sudo apt-get -y install autoconf automake clang-tools | |
- name: Perform Clang analysis | |
run: | | |
autoreconf -f -i -Wall,error | |
scan-build ./configure --${{ matrix.mmsg }} --${{ matrix.bpf }} | |
scan-build --status-bugs -v -o scan-build-results make "CFLAGS=-std=c11 -Werror" | |
- name: Upload Clang analysis results | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: clang-analysis-results-${{ matrix.mmsg }}-${{ matrix.bpf }} | |
path: scan-build-results/ |