1212name : " CodeQL"
1313
1414on :
15- # push:
16- # branches: [ "main", "master" ]
15+ push :
16+ branches : [ 'master' ]
17+ paths :
18+ - ' src/**'
19+ - ' examples/**'
20+ - ' lib/**'
21+ - ' hw/**'
22+ - ' .github/workflows/codeql.yml'
23+ pull_request :
24+ branches : [ 'master' ]
25+ paths :
26+ - ' src/**'
27+ - ' examples/**'
28+ - ' lib/**'
29+ - ' hw/**'
30+ - ' .github/workflows/codeql.yml'
1731 schedule :
1832 - cron : ' 0 0 * * *'
19- pull_request :
20- branches : ' *'
2133
2234jobs :
2335 analyze :
2739 # - https://gh.io/supported-runners-and-hardware-resources
2840 # - https://gh.io/using-larger-runners
2941 # Consider using larger runners for possible analysis time improvements.
30- runs-on : ${{ (matrix.language == 'swift' && 'macos-latest') || ' ubuntu-20.04' }}
31- timeout-minutes : ${{ (matrix.language == 'swift' && 120) || 360 }}
42+ runs-on : ubuntu-latest
43+ timeout-minutes : 360
3244 permissions :
3345 actions : read
3446 contents : read
@@ -37,22 +49,20 @@ jobs:
3749 strategy :
3850 fail-fast : false
3951 matrix :
40- language : [ 'cpp' ]
41- # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
42- # Use only 'java' to analyze code written in Java, Kotlin or both
43- # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
52+ language : [ 'c- cpp' ]
53+ # CodeQL supports [ 'c- cpp', 'csharp', 'go', 'java-kotlin ', 'javascript-typescript ', 'python', 'ruby', 'swift' ]
54+ # Use only 'java-kotlin ' to analyze code written in Java, Kotlin or both
55+ # Use only 'javascript-typescript ' to analyze code written in JavaScript, TypeScript or both
4456 # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
4557
4658 steps :
4759 - name : Checkout repository
4860 uses : actions/checkout@v3
49- with :
50- submodules : recursive
5161
52- - name : arm-none-eabi-gcc GNU Arm Embedded Toolchain
53- uses : carlosperate/arm-none-eabi-gcc-action@v1.6.0
62+ - name : Install ARM GCC
63+ uses : carlosperate/arm-none-eabi-gcc-action@v1
5464 with :
55- release : ' 10.3-2021.10 '
65+ release : ' 11.2-2022.02 '
5666
5767 # Initializes the CodeQL tools for scanning.
5868 - name : Initialize CodeQL
0 commit comments