mirror of
https://github.com/yuzu-emu/breakpad
synced 2024-11-26 04:17:51 +00:00
998a0a480c
Since GH is mirroring the code directly from our GoB systems, they aren't triggering push events. Set them up with a daily/weekly cron so we get some level of coverage. Change-Id: I9ececc74a4904e0e3060a10ee1acb952e2021240 Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/3289899 Reviewed-by: Mark Mentovai <mark@chromium.org>
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
# GitHub actions workflow.
|
|
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
|
|
|
|
# https://scan.coverity.com/projects/gentoo-pax-utils
|
|
name: Coverity Scan
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
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:
|
|
|
|
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
|
|
|
|
- uses: vapier/coverity-scan-action@v0
|
|
with:
|
|
project: google%2Fbreakpad
|
|
command: make -C src -O -j$(getconf _NPROCESSORS_CONF)
|
|
email: google-breakpad-dev@googlegroups.com
|
|
token: ${{ secrets.COVERITY_SCAN_TOKEN }}
|