Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,17 @@
patches: false
purpose: "node"

- repository: "slinky"
project_name: "slinky"
architecture: "x86_64"
binaries:
- "slinky"
builder: "go"
builder_version: "1.23.2"
cpu: "generic"
patches: false
purpose: "tool"

# Docker images

- repository: "bouncebit"
Expand Down
18 changes: 18 additions & 0 deletions scripts/slinky/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -euo pipefail

cd "${DEPOT_PROJECT_NAME}"
mkdir bin

# Build slinky with static linking using musl
export CGO_ENABLED=1
export CGO_LDFLAGS="-static"
export GOFLAGS=""

# Build slinky binary
go build -ldflags="-linkmode external -extldflags '-static'" -o slinky ./cmd/slinky

build_binaries="$(deno run --allow-read --allow-env ../utils/binaries.ts)"
echo "${build_binaries}" | jq -r 'to_entries[] | "\(.key) \(.value)"' | while read -r binary path; do
mv -v "${GITHUB_WORKSPACE}/slinky/${binary}" "${path}"
done