File tree Expand file tree Collapse file tree 5 files changed +59
-1
lines changed Expand file tree Collapse file tree 5 files changed +59
-1
lines changed Original file line number Diff line number Diff line change 37
37
38
38
matrix :
39
39
esp-idf-target : ["esp32", "esp32c3"]
40
+ language : ['cpp']
40
41
idf-version :
41
42
- ' v5.0.7'
42
43
- ' v5.1.5'
53
54
- name : Checkout repo
54
55
uses : actions/checkout@v4
55
56
57
+ - name : " Initialize CodeQL"
58
+ uses : github/codeql-action/init@v3
59
+ with :
60
+ languages : ${{matrix.language}}
61
+ mode : manual
62
+ queries : +./code-queries/term-to-non-term-func.ql,./code-queries/non-term-to-term-func.ql
63
+
56
64
- name : Build with idf.py
57
65
shell : bash
58
66
working-directory : ./src/platforms/esp32/
69
77
. $IDF_PATH/export.sh
70
78
idf.py size-components
71
79
80
+ - name : " Perform CodeQL Analysis"
81
+ uses : github/codeql-action/analyze@v3
82
+
72
83
- name : Install dependencies to build host AtomVM and run qemu
73
84
run : |
74
85
set -eu
Original file line number Diff line number Diff line change 37
37
strategy :
38
38
matrix :
39
39
board : ["pico", "pico_w"]
40
+ language : ["cpp"]
40
41
41
42
steps :
42
43
- name : Checkout repo
48
49
- name : " Install deps"
49
50
run : sudo apt install -y cmake gperf ninja-build gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib erlang-base erlang-dialyzer
50
51
52
+ - name : " Initialize CodeQL"
53
+ uses : github/codeql-action/init@v3
54
+ with :
55
+ languages : ${{matrix.language}}
56
+ mode : manual
57
+ queries : +./code-queries/term-to-non-term-func.ql,./code-queries/non-term-to-term-func.ql
58
+
51
59
- name : Build
52
60
shell : bash
53
61
working-directory : ./src/platforms/rp2040/
58
66
cmake .. -G Ninja -DPICO_BOARD=${{ matrix.board }}
59
67
ninja
60
68
69
+ - name : " Perform CodeQL Analysis"
70
+ uses : github/codeql-action/analyze@v3
71
+
61
72
- name : Install nvm and nodejs 20
62
73
run : |
63
74
set -euo pipefail
Original file line number Diff line number Diff line change 63
63
- name : Checkout repo
64
64
uses : actions/checkout@v4
65
65
66
+ - name : " Initialize CodeQL"
67
+ uses : github/codeql-action/init@v3
68
+ with :
69
+ languages : ' cpp'
70
+ mode : manual
71
+ queries : +./code-queries/term-to-non-term-func.ql,./code-queries/non-term-to-term-func.ql
72
+
66
73
- name : Build
67
74
shell : bash
68
75
working-directory : ./src/platforms/stm32/
73
80
# -DAVM_WARNINGS_ARE_ERRORS=ON
74
81
cmake .. -DCMAKE_TOOLCHAIN_FILE=cmake/arm-toolchain.cmake -DLIBOPENCM3_DIR=/home/runner/libopencm3
75
82
make -j
83
+
84
+ - name : " Perform CodeQL Analysis"
85
+ uses : github/codeql-action/analyze@v3
Original file line number Diff line number Diff line change @@ -30,16 +30,38 @@ concurrency:
30
30
cancel-in-progress : true
31
31
32
32
jobs :
33
- compile_tests :
33
+ compile_and_test :
34
+ - name : " Compile, analyze, and test"
34
35
runs-on : ubuntu-24.04
35
36
container : erlang:27
37
+
38
+ strategy :
39
+ fail-fast : false
40
+ matrix :
41
+ language : ["cpp", "javascript"]
42
+ include :
43
+ - language : " cpp"
44
+ query : " +./code-queries/term-to-non-term-func.ql,./code-queries/non-term-to-term-func.ql"
45
+ - language : " javascript"
46
+ query : " "
47
+
36
48
steps :
37
49
- name : Checkout repo
38
50
uses : actions/checkout@v4
39
51
40
52
- name : Install required packages
41
53
run : apt update && apt install -y gperf zlib1g-dev cmake ninja-build
42
54
55
+ - name : " Git config safe.directory for codeql"
56
+ run : git config --global --add safe.directory /__w/AtomVM/AtomVM
57
+
58
+ - name : " Initialize CodeQL"
59
+ uses : github/codeql-action/init@v3
60
+ with :
61
+ languages : ${{matrix.language}}
62
+ mode : manual
63
+ queries : ${{matrix.query}}
64
+
43
65
- name : Compile AtomVM and test modules
44
66
run : |
45
67
set -e
49
71
# test_eavmlib does not work with wasm due to http + ssl test
50
72
ninja AtomVM atomvmlib test_alisp hello_world run_script call_cast html5_events wasm_webserver
51
73
74
+ - name : " Perform CodeQL Analysis"
75
+ uses : github/codeql-action/analyze@v3
76
+
52
77
- name : Upload AtomVM and test modules
53
78
uses : actions/upload-artifact@v4
54
79
with :
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
11
11
- Added the ability to run beams from the CLI for Generic Unix platform (it was already possible with nodejs and emscripten).
12
12
- Added preliminary support for ESP32P4 (no networking support yet).
13
+ - CodeQL action runs on all platforms
13
14
14
15
### Fixed
15
16
You can’t perform that action at this time.
0 commit comments