Skip to content

Commit

Permalink
[compare-commits] Clone macios-adr from our existing clone instead of…
Browse files Browse the repository at this point in the history
… downloading it again. (#21842)
  • Loading branch information
rolfbjarne authored Dec 30, 2024
1 parent 619a8ea commit dd3b2e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Make.config
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ XAMARIN_MACDEV_PATH=$(TOP)/external/Xamarin.MacDev
MONOTOUCH_DIALOG_PATH=$(TOP)/external/MonoTouch.Dialog
API_TOOLS_PATH=$(TOP)/external/api-tools
MACCORE_PATH=$(TOP)/../maccore
ADR_PATH=$(TOP)/../macios-adr
ADR_PATH:=$(abspath $(TOP)/../macios-adr)

MONO_PREFIX ?= /Library/Frameworks/Mono.framework/Versions/Current
SYSTEM_MONO=$(MONO_PREFIX)/bin/mono
Expand Down
9 changes: 9 additions & 0 deletions tools/compare-commits.sh
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,15 @@ if test -z "$USE_EXISTING_BUILD"; then
mkdir -p "$OUTPUT_SRC_DIR"

cd "$OUTPUT_SRC_DIR"

echo " ${BLUE}Getting ADR from existing clone to avoid having to setup auth to get it again...${CLEAR}"
FILE="$ROOT_DIR/adr-path.raw"
make print-variable-value-to-file VARIABLE=ADR_PATH FILE=$FILE -C "$ROOT_DIR/tools/devops"
ADR_PATH=$(cat "$FILE")
rm -f "$FILE"
cp -cr "$ADR_PATH" .

echo " ${BLUE}Cloning xamarin-macios...${CLEAR}"
git clone https://github.com/xamarin/xamarin-macios --reference "$ROOT_DIR" 2>&1 | sed 's/^/ /'
cd xamarin-macios
git reset --hard "$BASE_HASH" 2>&1 | sed 's/^/ /'
Expand Down

9 comments on commit dd3b2e3

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

Please sign in to comment.