@@ -24,13 +24,17 @@ jobs:
2424 with :
2525 node-version : 22
2626 cache : " npm"
27+ - name : rust
28+ uses : dtolnay/rust-toolchain@stable
2729 - name : install dependencies
2830 run : npm ci
2931 - name : install clang-tidy
3032 run : sudo apt-get install -y clang-tidy
3133 - name : build project
3234 # Build project so that imports can be checked during linting
3335 run : npm run build
36+ - name : test LibAFL runtime
37+ run : cargo test --manifest-path packages/fuzzer/rust/Cargo.toml
3438 - name : build fuzzer
3539 # Build the native addon so that CMake downloads libFuzzer and
3640 # generates compile_commands.json, which are needed by clang-tidy
@@ -59,14 +63,19 @@ jobs:
5963 path : |
6064 packages/fuzzer/prebuilds
6165 key :
62- fuzzer-cache-${{ matrix.os }}-${{
63- hashFiles('packages/fuzzer/CMakeLists.txt',
64- ' packages/fuzzer/**/*.h' , 'packages/fuzzer/**/*.cpp') }}
66+ fuzzer-cache-${{ matrix.os }}-${{ hashFiles('package-lock.json',
67+ ' package.json' , 'packages/fuzzer/package.json',
68+ ' packages/fuzzer/CMakeLists.txt' , 'packages/fuzzer/**/*.h',
69+ ' packages/fuzzer/**/*.cpp' , 'packages/fuzzer/rust/Cargo.toml',
70+ ' packages/fuzzer/rust/Cargo.lock' ,
71+ ' packages/fuzzer/rust/src/**/*.rs' ) }}
6572 - name : node
6673 uses : actions/setup-node@v6
6774 with :
6875 node-version : ${{ matrix.node }}
6976 cache : " npm"
77+ - name : rust
78+ uses : dtolnay/rust-toolchain@stable
7079 - name : MSVC (windows)
7180 uses : ilammy/msvc-dev-cmd@v1
7281 if : contains(matrix.os, 'windows')
95104 with :
96105 node-version : 22
97106 cache : " npm"
107+ - name : rust
108+ uses : dtolnay/rust-toolchain@stable
98109 - name : MSVC (windows)
99110 uses : ilammy/msvc-dev-cmd@v1
100111 if : contains(matrix.os, 'windows')
0 commit comments