diff --git a/.github/workflows/rust_deploy.yml b/.github/workflows/rust_deploy.yml index 9e511ce..18cd615 100644 --- a/.github/workflows/rust_deploy.yml +++ b/.github/workflows/rust_deploy.yml @@ -3,8 +3,6 @@ name: Deploy Rust to Crates.io on: push: branches: ["main"] - paths: - - "Cargo.toml" env: CARGO_TERM_COLOR: always @@ -16,7 +14,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Build - run: cargo build --verbose + run: cargo build --release --bin docki - name: Run tests run: cargo test --verbose - name: Publish to crates.io diff --git a/Cargo.lock b/Cargo.lock index ccf7d6d..dca791d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -938,7 +938,7 @@ dependencies = [ [[package]] name = "docki" -version = "1.2.3" +version = "1.3.0" dependencies = [ "bytes", "clap", diff --git a/Cargo.toml b/Cargo.toml index ccfe018..8edbdba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,6 @@ authors = ["Quirin Ecker"] exclude = [".gitlab", ".github"] default-run = "docki" - [[bin]] name = "docki" path = "src/main.rs" diff --git a/flake.nix b/flake.nix index 5c2b315..5f8c71b 100644 --- a/flake.nix +++ b/flake.nix @@ -64,6 +64,11 @@ libiconv makeWrapper ]; + binaries = [ "docki" ]; + # only including the main binary in build + # There is no better option at the time of writing this + # https://github.com/nix-community/naersk/issues/127 + copyBinsFilter = ''select(.reason == "compiler-artifact" and .executable != null and .profile.test == false and .target.name == "docki")''; postInstall = '' mkdir -p $out/share/bash-completion/completions mkdir -p $out/share/zsh/site-functions