Skip to content

Commit 4512e42

Browse files
author
Paolo Tranquilli
committed
Rust: add CI
1 parent d8f37cf commit 4512e42

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/rust.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: "Rust"
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "rust/**"
7+
- "misc/bazel/**"
8+
- "misc/codegen/**"
9+
- "shared/**"
10+
- "MODULE.bazel"
11+
- .github/workflows/rust.yml
12+
- .github/actions/**
13+
- codeql-workspace.yml
14+
- "!**/*.md"
15+
- "!**/*.qhelp"
16+
branches:
17+
- rust-experiment
18+
- main
19+
- rc/*
20+
- codeql-cli-*
21+
22+
permissions:
23+
contents: read
24+
25+
jobs:
26+
cargo-check:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v4
31+
- name: Compilation
32+
working-directory: rust/extractor
33+
shell: bash
34+
run: cargo check
35+
- name: Clippy
36+
working-directory: rust/extractor
37+
shell: bash
38+
run: |
39+
cargo clippy --fix
40+
git diff --exit-code
41+
- name: Format
42+
working-directory: rust/extractor
43+
shell: bash
44+
run: |
45+
cargo fmt --check
46+
- name: Code generation
47+
working-directory: rust/extractor
48+
shell: bash
49+
run: |
50+
bazel run codegen
51+
git add .
52+
git diff --exit-code HEAD

0 commit comments

Comments
 (0)