2021-10-13 01:25:44 +00:00
|
|
|
# GitHub actions workflow.
|
|
|
|
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
|
|
|
|
|
2022-02-07 18:00:17 +00:00
|
|
|
# https://scan.coverity.com/projects/google-breakpad
|
2021-10-13 01:25:44 +00:00
|
|
|
name: Coverity Scan
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [main]
|
|
|
|
|
2021-11-18 20:25:00 +00:00
|
|
|
schedule:
|
|
|
|
# The GH mirroring from Google GoB does not trigger push actions.
|
|
|
|
# Fire it once a week to provide some coverage.
|
|
|
|
- cron: '39 2 * * WED'
|
|
|
|
|
|
|
|
# Allow for manual triggers from the web.
|
|
|
|
workflow_dispatch:
|
|
|
|
|
2021-10-13 01:25:44 +00:00
|
|
|
jobs:
|
|
|
|
coverity:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
CC: clang
|
|
|
|
CXX: clang++
|
|
|
|
steps:
|
|
|
|
- name: Checkout depot_tools
|
|
|
|
run: git clone --depth=1 https://chromium.googlesource.com/chromium/tools/depot_tools.git ../depot_tools
|
|
|
|
|
|
|
|
- name: Checkout breakpad
|
|
|
|
run: |
|
|
|
|
set -xe
|
|
|
|
PATH+=:$PWD/../depot_tools
|
|
|
|
gclient config --unmanaged --name=src https://github.com/${{ github.repository }}
|
|
|
|
gclient sync --no-history --nohooks
|
|
|
|
|
|
|
|
- run: ./configure --disable-silent-rules
|
|
|
|
working-directory: src
|
|
|
|
|
2022-02-07 18:00:17 +00:00
|
|
|
- uses: vapier/coverity-scan-action@v1
|
2021-10-13 01:25:44 +00:00
|
|
|
with:
|
|
|
|
command: make -C src -O -j$(getconf _NPROCESSORS_CONF)
|
2022-02-07 18:00:17 +00:00
|
|
|
email: ${{ secrets.COVERITY_SCAN_EMAIL }}
|
2021-10-13 01:25:44 +00:00
|
|
|
token: ${{ secrets.COVERITY_SCAN_TOKEN }}
|