fix clippy and check it on ci (#18)
This commit is contained in:
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
@@ -6,7 +6,7 @@ on:
|
||||
branches: ["master"]
|
||||
|
||||
jobs:
|
||||
debug:
|
||||
ci:
|
||||
runs-on: [self-hosted, linux]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -23,16 +23,18 @@ jobs:
|
||||
packages: libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
|
||||
version: 1.0
|
||||
|
||||
- name: Formatting
|
||||
run: |
|
||||
cargo fmt --check
|
||||
|
||||
- name: Lints
|
||||
run: |
|
||||
cargo clippy
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
cargo build --locked --target=x86_64-unknown-linux-gnu
|
||||
|
||||
- name: Archive
|
||||
run: |
|
||||
cp target/x86_64-unknown-linux-gnu/debug/hedz_reloaded hedz_reloaded
|
||||
tar -czf steamos-debug.tar.gz hedz_reloaded
|
||||
cargo build
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: steamos-debug.tar.gz
|
||||
path: ./steamos-debug.tar.gz
|
||||
- name: Lints
|
||||
run: |
|
||||
cargo test
|
||||
|
||||
40
.github/workflows/ci_debug.yml
vendored
Normal file
40
.github/workflows/ci_debug.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
name: ci_debug
|
||||
|
||||
on:
|
||||
workflow_dispatch: # Enables manual triggers
|
||||
|
||||
jobs:
|
||||
debug:
|
||||
runs-on: [self-hosted, linux]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: cargo-bins/cargo-binstall@main
|
||||
- uses: extractions/setup-just@v1
|
||||
- uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: stable
|
||||
components: clippy, rustfmt
|
||||
|
||||
- name: "Install and cache dependencies (Linux)"
|
||||
uses: awalsh128/cache-apt-pkgs-action@latest
|
||||
with:
|
||||
packages: libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
|
||||
version: 1.0
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
cargo build --locked --target=x86_64-unknown-linux-gnu
|
||||
|
||||
- name: Lints
|
||||
run: |
|
||||
cargo clippy
|
||||
|
||||
- name: Archive
|
||||
run: |
|
||||
cp target/x86_64-unknown-linux-gnu/debug/hedz_reloaded hedz_reloaded
|
||||
tar -czf steamos-debug.tar.gz hedz_reloaded
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: steamos-debug.tar.gz
|
||||
path: ./steamos-debug.tar.gz
|
||||
Reference in New Issue
Block a user