Skip to content

Commit 335501e

Browse files
authored
refactor
1 parent 8110412 commit 335501e

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,18 @@ jobs:
2020
- name: Checkout repository
2121
uses: actions/checkout@v6
2222

23-
- name: Setup LLVM 22
23+
- name: Setup LLVM
24+
if: matrix.language == 'cpp'
2425
uses: ZhongRuoyu/setup-llvm@v0
2526
with:
2627
llvm-version: 22
2728

29+
- name: Setup Rust
30+
if: matrix.language == 'rust'
31+
uses: dtolnay/rust-toolchain@master
32+
with:
33+
toolchain: 1.94.0
34+
2835
- name: Initialize CodeQL
2936
uses: github/codeql-action/init@v4
3037
with:
@@ -37,12 +44,6 @@ jobs:
3744
if: matrix.language != 'rust'
3845
uses: github/codeql-action/autobuild@v4
3946

40-
- name: Set up Rust
41-
if: matrix.language == 'rust'
42-
uses: dtolnay/rust-toolchain@master
43-
with:
44-
toolchain: 1.94.0
45-
4647
- name: Build Rust project
4748
if: matrix.language == 'rust'
4849
run: cargo build --verbose

0 commit comments

Comments
 (0)