updated flake, workflow, and cargo lock/toml file
This commit is contained in:
4
.github/workflows/rust_deploy.yml
vendored
4
.github/workflows/rust_deploy.yml
vendored
@@ -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
2
Cargo.lock
generated
@@ -938,7 +938,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "docki"
|
||||
version = "1.2.3"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"clap",
|
||||
|
||||
@@ -8,7 +8,6 @@ authors = ["Quirin Ecker"]
|
||||
exclude = [".gitlab", ".github"]
|
||||
default-run = "docki"
|
||||
|
||||
|
||||
[[bin]]
|
||||
name = "docki"
|
||||
path = "src/main.rs"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user