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: on:
push: push:
branches: ["main"] branches: ["main"]
paths:
- "Cargo.toml"
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
@@ -16,7 +14,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Build - name: Build
run: cargo build --verbose run: cargo build --release --bin docki
- name: Run tests - name: Run tests
run: cargo test --verbose run: cargo test --verbose
- name: Publish to crates.io - name: Publish to crates.io

2
Cargo.lock generated
View File

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

View File

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

View File

@@ -64,6 +64,11 @@
libiconv libiconv
makeWrapper 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 = '' postInstall = ''
mkdir -p $out/share/bash-completion/completions mkdir -p $out/share/bash-completion/completions
mkdir -p $out/share/zsh/site-functions mkdir -p $out/share/zsh/site-functions