From f510f6291cd79f06aac887d72285ab58d8d5998c Mon Sep 17 00:00:00 2001 From: Awiteb Date: Sun, 17 Mar 2024 08:03:27 +0300 Subject: [PATCH] fix(ci): merge rust ci jobs into one job Fix https://git.4rs.nl/awiteb/lprs/issues/1 --- .forgejo/workflows/ci.yml | 37 +++++++++++-------------------------- 1 file changed, 11 insertions(+), 26 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 75fec83..fb8842f 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -1,4 +1,4 @@ -name: CI +name: Rust CI on: push: @@ -7,32 +7,17 @@ on: branches: [master] jobs: - build: - name: Rust build + rust_ci: + name: Rust CI runs-on: debian steps: - uses: actions/checkout@v4 - uses: https://codeberg.org/TheAwiteb/rust-action@v1.70 - - run: cargo build - rustfmt: - name: Rust format - runs-on: debian - steps: - - uses: actions/checkout@v4 - - uses: https://codeberg.org/TheAwiteb/rust-action@v1.70 - - run: cargo fmt -- --check - 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 - + - name: Build the source code + run: cargo build + - name: Check the code format + run: cargo fmt -- --check + - name: Run cargo-check + run: cargo check + - name: Run cargo-clippy + run: cargo clippy -- -D warnings