fix(ci): merge rust ci jobs into one job #2
1 changed files with 11 additions and 26 deletions
|
@ -1,4 +1,4 @@
|
||||||
name: CI
|
name: Rust CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -7,32 +7,17 @@ on:
|
||||||
branches: [master]
|
branches: [master]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
rust_ci:
|
||||||
name: Rust build
|
name: Rust CI
|
||||||
runs-on: debian
|
runs-on: debian
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: https://codeberg.org/TheAwiteb/rust-action@v1.70
|
- uses: https://codeberg.org/TheAwiteb/rust-action@v1.70
|
||||||
- run: cargo build
|
- name: Build the source code
|
||||||
rustfmt:
|
run: cargo build
|
||||||
name: Rust format
|
- name: Check the code format
|
||||||
runs-on: debian
|
run: cargo fmt -- --check
|
||||||
steps:
|
- name: Run cargo-check
|
||||||
- uses: actions/checkout@v4
|
run: cargo check
|
||||||
- uses: https://codeberg.org/TheAwiteb/rust-action@v1.70
|
- name: Run cargo-clippy
|
||||||
- run: cargo fmt -- --check
|
run: cargo clippy -- -D warnings
|
||||||
check:
|
|
||||||
name: Rust check
|
|
||||||
runs-on: debian
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: https://codeberg.org/TheAwiteb/rust-action@v1.70
|
|
||||||
- run: cargo check
|
|
||||||
clippy:
|
|
||||||
name: Rust clippy
|
|
||||||
runs-on: debian
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: https://codeberg.org/TheAwiteb/rust-action@v1.70
|
|
||||||
- run: cargo clippy -- -D warnings
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue