-
Notifications
You must be signed in to change notification settings - Fork 12
61 lines (56 loc) · 1.72 KB
/
code-scanning.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# SVAR - code-scanning.yaml
# SPDX-FileCopyrightText: 2021-2025 Arkadiusz Bokowy and contributors
# SPDX-License-Identifier: MIT
name: Code Scanning
on:
push:
pull_request:
branches: [ master ]
permissions:
actions: read
contents: read
security-events: write
jobs:
code-ql:
strategy:
matrix:
build-type: [ Release ]
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Install Dependencies
run: |
sudo apt update
sudo apt install --yes --quiet --no-install-recommends \
libasound2-dev \
libmp3lame-dev \
libogg-dev \
libsndfile1-dev \
libvorbis-dev \
portaudio19-dev
- uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: cpp
queries: security-and-quality
- name: Create Build Environment
run: cmake -E make_directory ${{ github.workspace }}/build
- name: Configure CMake
working-directory: ${{ github.workspace }}/build
# Note the current convention is to use the -S and -B options here to
# specify source and build directories, but this is only available with
# CMake 3.13 and higher. The CMake binaries on the Github Actions
# machines are (as of this writing) 3.12
run: >
cmake $GITHUB_WORKSPACE
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }}
-DENABLE_PORTAUDIO=ON
-DENABLE_MP3LAME=ON
-DENABLE_SNDFILE=ON
-DENABLE_VORBIS=ON
- name: Build
working-directory: ${{ github.workspace }}/build
run: cmake --build . --config ${{ matrix.build-type }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3