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:
|
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
2
Cargo.lock
generated
@@ -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",
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user