Files
aare_launcher/.gitea/workflows/check-and-lint.yaml
T
perl_d be03e75eb6
Check and Lint / Rustfmt (pull_request) Successful in 14s
Check and Lint / Check (pull_request) Successful in 29s
Check and Lint / Clippy (pull_request) Successful in 27s
Test and Coverage / Test (pull_request) Successful in 28s
Test and Coverage / Coverage (pull_request) Successful in 47s
Check and Lint / Build RPM (pull_request) Successful in 1m27s
Check and Lint / Rustfmt (push) Successful in 15s
Check and Lint / Check (push) Successful in 18s
Check and Lint / Clippy (push) Successful in 19s
Test and Coverage / Test (push) Successful in 20s
Check and Lint / Build RPM (push) Successful in 33s
Release / Semantic release (push) Successful in 47s
Test and Coverage / Coverage (push) Successful in 45s
Release / Build and push RPM (push) Failing after 1m59s
build: rpm targets musl
2026-08-12 11:07:44 +02:00

61 lines
1.6 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
with:
targets: x86_64-unknown-linux-musl
- uses: https://github.com/Swatinem/rust-cache@v2
- name: Install musl toolchain
run: sudo apt-get update && sudo apt-get install -y musl-tools
- name: Build RPM
run: |
cargo build --release --target x86_64-unknown-linux-musl
strip -s target/x86_64-unknown-linux-musl/release/aarel
cargo install cargo-generate-rpm
cargo generate-rpm --target x86_64-unknown-linux-musl