neon_arch
commited on
Commit
•
0b56a7a
1
Parent(s):
b4a05bc
ci: fix github cis
Browse files- .github/workflows/clippy.yml +0 -19
- .github/workflows/rust_format.yml +26 -0
- .github/workflows/rustfmt.yml +0 -23
.github/workflows/clippy.yml
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
name: Clippy check
|
2 |
-
on:
|
3 |
-
push:
|
4 |
-
branches:
|
5 |
-
- "**"
|
6 |
-
pull_request:
|
7 |
-
branches:
|
8 |
-
- "rolling"
|
9 |
-
|
10 |
-
jobs:
|
11 |
-
clippy_check:
|
12 |
-
runs-on: ubuntu-latest
|
13 |
-
steps:
|
14 |
-
- uses: actions/checkout@v1
|
15 |
-
- run: rustup component add clippy
|
16 |
-
- uses: actions-rs/clippy-check@v1
|
17 |
-
with:
|
18 |
-
token: ${{ secrets.GITHUB_TOKEN }}
|
19 |
-
args: --all-targets --all-features -- -D warnings
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.github/workflows/rust_format.yml
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Rust format and clippy checks
|
2 |
+
on:
|
3 |
+
push:
|
4 |
+
branches:
|
5 |
+
- "**"
|
6 |
+
pull_request:
|
7 |
+
branches:
|
8 |
+
- "rolling"
|
9 |
+
|
10 |
+
jobs:
|
11 |
+
check:
|
12 |
+
name: Rust project
|
13 |
+
runs-on: ubuntu-latest
|
14 |
+
steps:
|
15 |
+
- uses: actions/checkout@v2
|
16 |
+
- name: Install minimal stable with clippy and rustfmt
|
17 |
+
uses: actions-rs/toolchain@v1
|
18 |
+
with:
|
19 |
+
profile: minimal
|
20 |
+
toolchain: stable
|
21 |
+
components: rustfmt, clippy
|
22 |
+
|
23 |
+
- name: Run cargo check
|
24 |
+
uses: actions-rs/cargo@v1
|
25 |
+
with:
|
26 |
+
command: check
|
.github/workflows/rustfmt.yml
DELETED
@@ -1,23 +0,0 @@
|
|
1 |
-
name: Rustfmt
|
2 |
-
on:
|
3 |
-
push:
|
4 |
-
branches:
|
5 |
-
- "**"
|
6 |
-
pull_request:
|
7 |
-
branches:
|
8 |
-
- "rolling"
|
9 |
-
|
10 |
-
jobs:
|
11 |
-
formatting:
|
12 |
-
name: cargo fmt
|
13 |
-
runs-on: ubuntu-latest
|
14 |
-
steps:
|
15 |
-
- uses: actions/checkout@v3
|
16 |
-
# Ensure rustfmt is installed and setup problem matcher
|
17 |
-
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
18 |
-
with:
|
19 |
-
components: rustfmt
|
20 |
-
- name: Rustfmt Check
|
21 |
-
uses: Syndelis/rustfmt-action@v1
|
22 |
-
with:
|
23 |
-
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|