1# GitHub actions workflow. 2# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions 3 4# https://scan.coverity.com/projects/google-breakpad 5name: Coverity Scan 6 7on: 8 push: 9 branches: [main] 10 11 schedule: 12 # The GH mirroring from Google GoB does not trigger push actions. 13 # Fire it once a week to provide some coverage. 14 - cron: '39 2 * * WED' 15 16 # Allow for manual triggers from the web. 17 workflow_dispatch: 18 19jobs: 20 coverity: 21 runs-on: ubuntu-latest 22 env: 23 CC: clang 24 CXX: clang++ 25 steps: 26 - name: Checkout depot_tools 27 run: git clone --depth=1 https://chromium.googlesource.com/chromium/tools/depot_tools.git ../depot_tools 28 29 - name: Checkout breakpad 30 run: | 31 set -xe 32 PATH+=:$PWD/../depot_tools 33 gclient config --unmanaged --name=src https://github.com/${{ github.repository }} 34 gclient sync --no-history --nohooks 35 36 - run: ./configure --disable-silent-rules 37 working-directory: src 38 39 - uses: vapier/coverity-scan-action@v1 40 with: 41 command: make -C src -O -j$(getconf _NPROCESSORS_CONF) 42 email: ${{ secrets.COVERITY_SCAN_EMAIL }} 43 token: ${{ secrets.COVERITY_SCAN_TOKEN }} 44