Skip to content

Commit

Permalink
Merge pull request #60 from restake/feature/RES-1681
Browse files Browse the repository at this point in the history
RES-1681: Build namada binary
  • Loading branch information
karlmjogila authored Oct 31, 2024
2 parents 438a68b + 82e6d20 commit 95cb50d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
11 changes: 11 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,17 @@
patches: false
purpose: "node"

- repository: "namada"
project_name: "namada"
architecture: "x86_64"
binaries:
- "namada"
builder: "rust"
builder_version: "1.80"
cpu: "x86_64"
patches: false
purpose: "node"

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

cd "${DEPOT_PROJECT_NAME}"
mkdir bin

export CARGO_BUILD_TARGET="x86_64-unknown-linux-gnu"
export CARGO_INCREMENTAL="0"

cargo build --release --bin namada

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 "target/${CARGO_BUILD_TARGET}/release/${binary}" "${path}"
done

0 comments on commit 95cb50d

Please sign in to comment.