Awiteb
60ae95ea5f
All checks were successful
Rust CI / Rust CI (push) Successful in 1m33s
Signed-off-by: Awiteb <a@4rs.nl>
29 lines
736 B
YAML
29 lines
736 B
YAML
name: Rust CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
rust_ci:
|
|
name: Rust CI
|
|
runs-on: debian
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: https://codeberg.org/TheAwiteb/rust-action@v1.75
|
|
- name: Check MSRV
|
|
run: cargo +1.75 build
|
|
- name: Build the source code
|
|
run: cargo build
|
|
- name: Build examples
|
|
run: cargo build -F 'cacache-storage' --example simple_login
|
|
- name: Run tests
|
|
run: cargo test --tests --all-features
|
|
- 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
|