Skip to content

Commit

Permalink
RES-1803: Fix reference target URL
Browse files Browse the repository at this point in the history
  • Loading branch information
hansaaviksoo committed Nov 25, 2024
1 parent e791d9e commit ca1be3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions scripts/sui/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca1be3a

Please sign in to comment.