ci: improvements in scripting and testing
All checks were successful
On_Push / lint_fmt (push) Successful in 54s
On_Push / lint_clippy (push) Successful in 3m59s
On_Push / build (push) Successful in 10m33s
On_Push / deploy (push) Successful in 12s

This commit is contained in:
silver 2024-08-10 03:12:09 +01:00
parent 7ac8b90f27
commit c447577eee
3 changed files with 45 additions and 43 deletions

View file

@ -15,30 +15,22 @@ jobs:
# rust code must be formatted for standardisation
lint_fmt:
# build it using teh base nixos system, helps with caching
runs-on: docker
runs-on: nix
steps:
# get the repo first
- uses: https://code.forgejo.org/actions/checkout@v4
- uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
cache: false
- uses: https://github.com/actions-rust-lang/rustfmt@v1
- run: nix build .#fmt --verbose
# clippy is incredibly useful for making yer code better
lint_clippy:
# build it using teh base nixos system, helps with caching
runs-on: docker
runs-on: nix
permissions:
checks: write
steps:
# get the repo first
- uses: https://code.forgejo.org/actions/checkout@v4
- uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy
cache: false
- run: cargo clippy
- run: nix build .#clippy --verbose
build:
# build it using teh base nixos system, helps with caching