Skip to content

Commit 8110412

Browse files
authored
Rust support
Add support for Rust projects in CodeQL workflow.
1 parent d88fac7 commit 8110412

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,20 @@ jobs:
3434
- 'tests/**'
3535
3636
- name: Autobuild
37+
if: matrix.language != 'rust'
3738
uses: github/codeql-action/autobuild@v4
3839

40+
- name: Set up Rust
41+
if: matrix.language == 'rust'
42+
uses: dtolnay/rust-toolchain@master
43+
with:
44+
toolchain: 1.94.0
45+
46+
- name: Build Rust project
47+
if: matrix.language == 'rust'
48+
run: cargo build --verbose
49+
working-directory: libcc2rs
50+
3951
- name: Perform CodeQL Analysis
4052
uses: github/codeql-action/analyze@v4
4153
with:

0 commit comments

Comments
 (0)