|
34 | 34 | strategy:
|
35 | 35 | fail-fast: false
|
36 | 36 | matrix:
|
37 |
| - language: [ 'cpp','javascript' ] |
| 37 | + language: [ 'cpp', 'javascript' ] |
38 | 38 | # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
|
39 | 39 | # Use only 'java' to analyze code written in Java, Kotlin or both
|
40 | 40 | # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
|
@@ -64,20 +64,17 @@ jobs:
|
64 | 64 | - '**/*.test.tsx'
|
65 | 65 | - '**/*.spec.tsx'
|
66 | 66 |
|
67 |
| - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). |
68 |
| - # If this step fails, then you should remove it and run the build manually (see below) |
69 |
| - - name: Autobuild |
70 |
| - uses: github/codeql-action/autobuild@v2 |
71 |
| - |
72 |
| - # ℹ️ Command-line programs to run using the OS shell. |
73 |
| - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun |
| 67 | + - name: Use Node.js v18.x |
| 68 | + if: matrix.language == 'cpp' |
| 69 | + uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 |
| 70 | + with: |
| 71 | + node-version: 18.x |
74 | 72 |
|
75 |
| - # If the Autobuild fails above, remove it and uncomment the following three lines. |
76 |
| - # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. |
| 73 | + - name: Build cpp |
| 74 | + if: matrix.language == 'cpp' |
| 75 | + run: | |
| 76 | + npx node-gyp rebuild |
77 | 77 |
|
78 |
| - # - run: | |
79 |
| - # echo "Run, Build Application using script" |
80 |
| - # ./location_of_script_within_repo/buildscript.sh |
81 | 78 |
|
82 | 79 | - name: Perform CodeQL Analysis
|
83 | 80 | uses: github/codeql-action/analyze@v2
|
|
0 commit comments