From d3245faddd1337fcbed5d29bb56e9da14a3fa91f Mon Sep 17 00:00:00 2001 From: lennard Date: Tue, 13 Jun 2023 20:55:53 +0200 Subject: [PATCH] only test cli_app on non linux platforms --- .github/workflows/rust.yml | 4 ++-- Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b37ff4e..48388f5 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -17,7 +17,7 @@ jobs: - name: Build run: cargo build --verbose --bin cli_app - name: test - run: cargo test + run: cargo test --bin cli_app build-windows: runs-on: windows-latest @@ -26,7 +26,7 @@ jobs: - name: Build run: cargo build --verbose --bin cli_app - name: test - run: cargo test + run: cargo test --bin cli_app build-linux: runs-on: ubuntu-latest diff --git a/Cargo.toml b/Cargo.toml index 314a5bd..c4b4a02 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,5 +9,5 @@ edition = "2021" hidapi = "2.3.3" thiserror = "1.0.40" -[target.'cfg(unix)'.dependencies] +[target.'cfg(target_os = "linux")'.dependencies] ksni = "0.2.0" \ No newline at end of file