Skip to content

Commit

Permalink
RES-1545: Add pathfinder building script
Browse files Browse the repository at this point in the history
  • Loading branch information
hansaaviksoo committed Oct 16, 2024
1 parent 088f1ac commit a438a55
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
- "pathfinder"
builder: "rust"
builder_version: "1.80"
cpu: "generic"
cpu: "x86_64"
patches: false
purpose: "node"

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

cd "${DEPOT_PROJECT_NAME}"
mkdir bin

cargo build --release --bin pathfinder

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

0 comments on commit a438a55

Please sign in to comment.