source: mod_gnutls/.github/workflows/analysis.yaml @ bf8cfb5

asyncio
Last change on this file since bf8cfb5 was bf8cfb5, checked in by Fiona Klute <fiona.klute@…>, 12 months ago

Explicitly use clang 10 for scan-build

Somehow Debian Sid still defaults to clang 9, which doesn't produce
valid SARIF.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1name: Analysis
2on:
3  pull_request:
4  push:
5    # don't run on packaging branches
6    branches-ignore:
7      - 'for-debian'
8      - 'debian/**'
9      - 'pristine-tar'
10    paths:
11      - '**'
12      - '!doc/**'
13      - '!**.md'
14
15jobs:
16  clang:
17    runs-on: ubuntu-20.04
18    container: debian:sid
19    name: clang-analyzer
20    steps:
21      - uses: actions/checkout@v2
22      - name: install dependencies
23        run: |
24          apt-get update
25          apt-get -y install python3-yaml apache2-bin apache2-dev curl gnutls-bin libapr1-dev libgnutls28-dev openssl pkg-config procps clang-10 clang-tools-10 libmsv-dev
26      - name: find usable IPs for tests
27        run: |
28          echo "test_ips=$(python3 test/check_test_ips.py -H localhost)" >> ${GITHUB_ENV}
29      - name: autoreconf
30        run: autoreconf -fiv
31      - name: configure
32        run: scan-build-10 --use-cc=clang-10 ./configure --enable-msva TEST_IP="${test_ips}" APACHE_MUTEX=pthread
33      - name: store config.log
34        uses: actions/upload-artifact@v2
35        if: failure()
36        with:
37          name: scan-build-config-log
38          path: config.log
39      - name: make
40        run: scan-build-10 -sarif -o sarif-output --use-cc=clang-10 make
41      - name: Find output directory
42        run: |
43          echo "SARIF_DIR=$(ls -d sarif-output/*)" >> ${GITHUB_ENV}
44      - name: Upload SARIF results
45        uses: github/codeql-action/upload-sarif@v1
46        with:
47          sarif_file: ${{ env.SARIF_DIR }}
Note: See TracBrowser for help on using the repository browser.