mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-12-23 02:05:28 +00:00
4708e6fb8b
This simplifies the action code a bit. Change-Id: Ibd6ce393ab2d09b0b6e91cecb3a78a33a18de7c0 Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/3443961 Reviewed-by: Joshua Peraza <jperaza@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/google-breakpad
|
|
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@v1
|
|
with:
|
|
command: make -C src -O -j$(getconf _NPROCESSORS_CONF)
|
|
email: ${{ secrets.COVERITY_SCAN_EMAIL }}
|
|
token: ${{ secrets.COVERITY_SCAN_TOKEN }}
|