mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +00:00
38 lines
891 B
YAML
38 lines
891 B
YAML
name: "CodeQL"
|
|
|
|
on:
|
|
push:
|
|
branches: [ 4.0release, develop ]
|
|
pull_request:
|
|
# The branches below must be a subset of the branches above
|
|
branches: [ 4.0release, develop ]
|
|
schedule:
|
|
# '20 19 * * 6' means 'At 19:20, only on Saturday' @see https://crontab.cronhub.io/
|
|
- cron: '20 19 * * 6'
|
|
|
|
jobs:
|
|
analyze:
|
|
name: codeql-analyze
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
language: [ 'cpp' ]
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
# Initializes the CodeQL tools for scanning.
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v1
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
|
|
- name: Build SRS
|
|
run: |
|
|
cd trunk && ./configure && make
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v1
|