| 1 |
name: Scanbuild test |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: [ "master" ] |
| 6 |
pull_request: |
| 7 |
branches: [ "master" ] |
| 8 |
|
| 9 |
jobs: |
| 10 |
build: |
| 11 |
# Ubuntu latest scan-build has issues 2024-09. This is a documentated hack |
| 12 |
# to run Fedora instead |
| 13 |
runs-on: ubuntu-latest |
| 14 |
container: |
| 15 |
image: fedora:latest |
| 16 |
env: |
| 17 |
CC: clang |
| 18 |
|
| 19 |
steps: |
| 20 |
- uses: actions/checkout@v4 |
| 21 |
- name: Install deps |
| 22 |
run: | |
| 23 |
sudo dnf install -y libcurl-devel clang-analyzer autoconf automake libtool gawk |
| 24 |
- name: Build libmarias3 |
| 25 |
run: | |
| 26 |
autoreconf -fi |
| 27 |
./configure --enable-debug=yes |
| 28 |
- name: Scanbuild |
| 29 |
run: |
| 30 |
scan-build --use-cc=clang --use-c++=clang++ --status-bugs make |