mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2025-12-11 20:15:30 +01:00
Run Clippy only on Linux runners
Limit CI clippy to Linux runners Refactor daemon_target path construction in build.rs to a multi-line format for readability
This commit is contained in:
parent
9981ee76d2
commit
12ddcce940
1
.github/workflows/cache-factory.yaml
vendored
1
.github/workflows/cache-factory.yaml
vendored
@ -99,4 +99,5 @@ jobs:
|
|||||||
run: cargo build --quiet --workspace --all-features --release --target ${{ matrix.settings.target }}
|
run: cargo build --quiet --workspace --all-features --release --target ${{ matrix.settings.target }}
|
||||||
|
|
||||||
- name: Clippy
|
- name: Clippy
|
||||||
|
if: runner.os == 'Linux'
|
||||||
run: cargo clippy --workspace --all-features --target ${{ matrix.settings.target }}
|
run: cargo clippy --workspace --all-features --target ${{ matrix.settings.target }}
|
||||||
|
|||||||
@ -64,7 +64,10 @@ fn main() {
|
|||||||
.expect("Could not find workspace directory");
|
.expect("Could not find workspace directory");
|
||||||
|
|
||||||
let daemon_source = format!("{}/target/{}/sd-daemon", workspace_dir, profile);
|
let daemon_source = format!("{}/target/{}/sd-daemon", workspace_dir, profile);
|
||||||
let daemon_target = format!("{}/target/{}/sd-daemon-{}", workspace_dir, profile, target_triple);
|
let daemon_target = format!(
|
||||||
|
"{}/target/{}/sd-daemon-{}",
|
||||||
|
workspace_dir, profile, target_triple
|
||||||
|
);
|
||||||
|
|
||||||
if std::path::Path::new(&daemon_source).exists() {
|
if std::path::Path::new(&daemon_source).exists() {
|
||||||
// Remove existing file if it exists
|
// Remove existing file if it exists
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user