From a438a5534060fcceacb0fe7b2f05230c37953a58 Mon Sep 17 00:00:00 2001 From: Hans Oskar Aaviksoo Date: Wed, 16 Oct 2024 10:46:41 +0300 Subject: [PATCH] RES-1545: Add pathfinder building script --- config.yml | 2 +- scripts/pathfinder/build.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 scripts/pathfinder/build.sh diff --git a/config.yml b/config.yml index 21463b4..7a6e04c 100644 --- a/config.yml +++ b/config.yml @@ -221,7 +221,7 @@ - "pathfinder" builder: "rust" builder_version: "1.80" - cpu: "generic" + cpu: "x86_64" patches: false purpose: "node" diff --git a/scripts/pathfinder/build.sh b/scripts/pathfinder/build.sh new file mode 100644 index 0000000..a8ee6dc --- /dev/null +++ b/scripts/pathfinder/build.sh @@ -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