@@ -32,18 +32,18 @@ jobs:
32
32
strategy :
33
33
fail-fast : false
34
34
matrix :
35
- language : [ 'javascript ' ]
35
+ language : [ 'cpp ' ]
36
36
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
37
37
# Learn more:
38
38
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
39
39
40
40
steps :
41
41
- name : Checkout repository
42
- uses : actions/checkout@v2
42
+ uses : actions/checkout@v3
43
43
44
44
# Initializes the CodeQL tools for scanning.
45
45
- name : Initialize CodeQL
46
- uses : github/codeql-action/init@v1
46
+ uses : github/codeql-action/init@v3
47
47
with :
48
48
languages : ${{ matrix.language }}
49
49
config-file : ./.github/codeql/codeql-config.yml
54
54
55
55
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
56
56
# If this step fails, then you should remove it and run the build manually (see below)
57
- - name : Autobuild
58
- uses : github/codeql-action/autobuild@v1
57
+ # - name: Autobuild
58
+ # uses: github/codeql-action/autobuild@v3
59
59
60
60
# ℹ️ Command-line programs to run using the OS shell.
61
61
# 📚 https://git.io/JvXDl
64
64
# and modify them (or add more) to build your code if your project
65
65
# uses a compiled language
66
66
67
- # - run: |
68
- # make bootstrap
69
- # make release
67
+ - name : Install Node.js
68
+ uses : actions/setup-node@v2
69
+ with :
70
+ node-version : ' 16'
71
+
72
+ - name : Install node-pre-gyp globally
73
+ run : npm install -g @mapbox/node-pre-gyp
74
+
75
+ - name : Install Node gyp
76
+ run : npm install -g node-gyp
77
+
78
+ - name : Install node-pre-gyp globally
79
+ run : node-pre-gyp install --fallback-to-build
80
+
81
+ - name : Install nan globally
82
+ run : npm install -g nan
83
+
84
+ - name : Install Python
85
+ uses : actions/setup-python@v2
86
+ with :
87
+ python-version : ' 3.x'
88
+
89
+ - name : Install Make
90
+ run : sudo apt-get update && sudo apt-get install -y make
91
+
92
+ - name : Install GCC
93
+ run : sudo apt-get update && sudo apt-get install -y gcc
94
+
95
+ - name : Build
96
+ run : |
97
+ npm install --save nan
98
+ node-gyp configure
99
+ node-gyp rebuild
70
100
71
101
- name : Perform CodeQL Analysis
72
- uses : github/codeql-action/analyze@v1
102
+ uses : github/codeql-action/analyze@v3
0 commit comments