Skip to content

Commit

Permalink
Dynamically obtain the list of built executables (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
MOZGIII authored Sep 8, 2023
1 parent eee16b5 commit bda5acc
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions build-info/binaries
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
#!/bin/bash
set -euo pipefail

BINARIES=(
humanode-distribution
)
list_binaries() {
cargo metadata --format-version 1 |
jq -r '
.workspace_members as $ws |
.packages[] | select(.id as $id | $ws | contains([$id])) |
.targets[] | select(.kind == ["bin"]) |
.name
'
}

BINARIES=()

for BINARY in $(list_binaries); do
BINARIES+=("$BINARY")
done

0 comments on commit bda5acc

Please sign in to comment.