2
0

codeql-analysis.yml 936 B

12345678910111213141516171819202122232425262728293031323334
  1. name: "CodeQL"
  2. # @see https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestbranchestags
  3. on: [push, pull_request]
  4. jobs:
  5. analyze:
  6. name: actions-codeql-analyze
  7. runs-on: ubuntu-20.04
  8. strategy:
  9. fail-fast: false
  10. matrix:
  11. language: [ 'cpp' ]
  12. steps:
  13. - name: Checkout repository
  14. uses: actions/checkout@v3
  15. # Initializes the CodeQL tools for scanning.
  16. - name: Initialize CodeQL
  17. uses: github/codeql-action/init@v2
  18. with:
  19. languages: ${{ matrix.language }}
  20. - name: Build SRS
  21. run: |
  22. echo "pwd: $(pwd), who: $(whoami)"
  23. docker run --rm -v $(pwd):$(pwd) -w $(pwd)/trunk ossrs/srs:ubuntu20-cache \
  24. bash -c "./configure && chmod 777 -R objs"
  25. cd trunk && ./configure && make
  26. - name: Perform CodeQL Analysis
  27. uses: github/codeql-action/analyze@v2