diff --git a/.github/workflows/ci-cd.yaml b/.github/workflows/ci-cd.yaml index 1efa477..3114262 100644 --- a/.github/workflows/ci-cd.yaml +++ b/.github/workflows/ci-cd.yaml @@ -54,12 +54,6 @@ jobs: steps: - uses: actions/checkout@v6 - - name: Cache system dependencies - uses: awalsh128/cache-apt-pkgs-action@v1 - with: - packages: wireguard-tools - version: 1.0 - - name: Cache Rust dependencies uses: Swatinem/rust-cache@v2 @@ -79,12 +73,6 @@ jobs: steps: - uses: actions/checkout@v6 - - name: Cache system dependencies - uses: awalsh128/cache-apt-pkgs-action@v1 - with: - packages: wireguard-tools - version: 1.0 - - name: Add musl target run: rustup target add x86_64-unknown-linux-musl diff --git a/Cargo.lock b/Cargo.lock index bc2851b..f89456c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -991,7 +991,7 @@ checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" [[package]] name = "wg-tui" -version = "0.1.14" +version = "0.1.15" dependencies = [ "clap", "color-eyre", diff --git a/Cargo.toml b/Cargo.toml index 18361b5..cab7c4f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wg-tui" -version = "0.1.14" +version = "0.1.15" edition = "2024" description = "A terminal user interface for managing WireGuard VPN tunnels" repository = "https://github.com/excoffierleonard/wg-tui" diff --git a/build.rs b/build.rs index f35d3b5..9f1941f 100644 --- a/build.rs +++ b/build.rs @@ -5,7 +5,7 @@ compile_error!("wg-tui only supports Linux"); use std::process::Command; #[cfg(target_os = "linux")] -const REQUIRED_COMMANDS: &[&str] = &["wg", "wg-quick"]; +const REQUIRED_COMMANDS: &[&str] = &["wg", "wg-quick", "ip"]; #[cfg(target_os = "linux")] fn command_exists(cmd: &str) -> bool { @@ -31,8 +31,8 @@ fn main() { if !missing.is_empty() { let names: Vec<&str> = missing.iter().copied().copied().collect(); - panic!( - "Missing system dependencies: {}. Please install wireguard-tools.", + println!( + "cargo:warning=Missing system dependencies: {}. Please install wireguard-tools.", names.join(", ") ); }