forked from RHVoice/RHVoice
-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (64 loc) · 1.96 KB
/
codeql-analysis.yml
File metadata and controls
77 lines (64 loc) · 1.96 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: "CodeQL"
on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '31 11 * * 3'
jobs:
analyze:
name: Analyze
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest ]
language: [ 'cpp', 'java', 'python' ]
exclude:
- os: windows-latest
language: 'java'
# not working
- os: windows-latest
language: 'cpp'
- os: ubuntu-latest
language: 'python'
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: 'true'
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.7'
- if: ${{ matrix.language == 'java' }}
name: Setup Java JDK
uses: actions/setup-java@v1.4.3
with:
java-version: '8'
- name: Install scons
run: python -m pip install --upgrade pip setuptools wheel scons
- if: ${{ runner.os == 'Windows' }}
name: Install windows build dependencies
run: python -m pip install lxml
- if: ${{ runner.os == 'Linux' }}
name: Install Linux build dependencies
run: sudo apt-get -q -y install libpulse-dev libao-dev portaudio19-dev libspeechd-dev
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
setup-python-dependencies: false
# queries: ./path/to/local/query, your-org/your-repo/queries@main
- if: ${{ matrix.language == 'cpp' }}
name: build with scons
run: scons -j 2
- if: ${{ matrix.language == 'java' }}
name: Build Android project
working-directory: ./src/android/
run: ./gradlew assembleDebug
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1