Files
aare_launcher/.gitea/workflows/check-and-lint.yaml
T
perl_d ac5baf720e
Check and Lint / Check (pull_request) Successful in 20s
Check and Lint / Clippy (pull_request) Successful in 20s
Check and Lint / Rustfmt (pull_request) Successful in 25s
Test and Coverage / Test (pull_request) Successful in 20s
Check and Lint / Rustfmt (push) Successful in 14s
Check and Lint / Check (push) Successful in 27s
Check and Lint / Clippy (push) Successful in 28s
Check and Lint / Build RPM (pull_request) Successful in 2m43s
Check and Lint / Build RPM (push) Successful in 1m46s
Test and Coverage / Coverage (pull_request) Successful in 3m52s
Release / Build and push RPM (push) Failing after 2m35s
Test and Coverage / Coverage (push) Successful in 3m26s
Test and Coverage / Test (push) Successful in 29s
fix: remove artifact upload for rpms
2026-07-07 15:59:26 +02:00

57 lines
1.4 KiB
YAML

name: Check and Lint
on:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: https://github.com/dtolnay/rust-toolchain@stable
- uses: https://github.com/Swatinem/rust-cache@v2
- run: cargo check --all-targets
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: https://github.com/dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: https://github.com/dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: https://github.com/Swatinem/rust-cache@v2
- run: cargo clippy --all-targets --all-features -- -D warnings
build-rpm:
name: Build RPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: https://github.com/dtolnay/rust-toolchain@stable
- uses: https://github.com/Swatinem/rust-cache@v2
- name: Build RPM
run: |
cargo build --release
strip -s target/release/aarel
cargo install cargo-generate-rpm
cargo generate-rpm