From ca1be3a57c85dfd326ca7fc52cfd4b3016078672 Mon Sep 17 00:00:00 2001 From: Hans Oskar Aaviksoo Date: Mon, 25 Nov 2024 20:33:49 +0200 Subject: [PATCH] RES-1803: Fix reference target URL --- .github/workflows/build.yml | 5 +++-- scripts/sui/build.sh | 5 +---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 24fdc28..1ce26cf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -136,7 +136,8 @@ jobs: with: repository: "${{ env.DEPOT_REPOSITORY_ORG }}/${{ env.DEPOT_REPOSITORY_NAME }}" path: "${{ env.DEPOT_PROJECT_NAME }}" - ref: "refs/${{ env.DEPOT_BINARY_HASH }}" + ref: "${{ env.DEPOT_BINARY_HASH }}" + fetch-depth: 1 submodules: true - id: "apply-patches" @@ -197,7 +198,7 @@ jobs: run: | set -euo pipefail - VERSION="${DEPOT_BINARY_VERSION:-$DEPOT_BINARY_HASH}" + VERSION="${DEPOT_BINARY_VERSION:-SHA-$DEPOT_BINARY_HASH}" for file in binaries/*; do if [ -f "$file" ]; then diff --git a/scripts/sui/build.sh b/scripts/sui/build.sh index 02e8a4d..3de9686 100755 --- a/scripts/sui/build.sh +++ b/scripts/sui/build.sh @@ -6,14 +6,11 @@ cd "${DEPOT_PROJECT_NAME}" if [[ -n "${DEPOT_BINARY_HASH:-}" ]]; then echo "Building binaries from specific hash: ${DEPOT_BINARY_HASH}" - git fetch --depth=1 origin "${DEPOT_BINARY_HASH}" - git checkout "${DEPOT_BINARY_HASH}" - mkdir -p bin export CARGO_BUILD_TARGET="x86_64-unknown-linux-gnu" export CARGO_INCREMENTAL="0" - cargo build --release sui sui-bridge-cli sui-bridge + cargo build --release --bin sui --bin sui-bridge-cli --bin sui-bridge 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