1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 11:51:57 +00:00
srs/.github/workflows/codeql-analysis.yml

38 lines
1 KiB
YAML
Raw Normal View History

name: "CodeQL"
2021-08-15 13:51:50 +00:00
# @see https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestbranchestags
on: [push, pull_request]
# See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
permissions: write-all
jobs:
analyze:
2021-08-15 13:51:50 +00:00
name: actions-codeql-analyze
2022-12-25 04:10:53 +00:00
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
2022-08-13 00:18:06 +00:00
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Build SRS
run: |
2022-08-13 02:27:14 +00:00
echo "pwd: $(pwd), who: $(whoami)"
docker run --rm -v $(pwd):$(pwd) -w $(pwd)/trunk ossrs/srs:ubuntu20-cache \
bash -c "./configure && chmod 777 -R objs"
cd trunk && ./configure && make
- name: Perform CodeQL Analysis
2022-08-13 00:18:06 +00:00
uses: github/codeql-action/analyze@v2