updated flake, workflow, and cargo lock/toml file

This commit is contained in:
2025-11-14 12:35:37 +01:00
parent bc3283eb29
commit 379a337611
4 changed files with 7 additions and 5 deletions

View File

@@ -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

2
Cargo.lock generated
View File

@@ -938,7 +938,7 @@ dependencies = [
[[package]]
name = "docki"
version = "1.2.3"
version = "1.3.0"
dependencies = [
"bytes",
"clap",

View File

@@ -8,7 +8,6 @@ authors = ["Quirin Ecker"]
exclude = [".gitlab", ".github"]
default-run = "docki"
[[bin]]
name = "docki"
path = "src/main.rs"

View File

@@ -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