File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 3636 sudo dnf install -y systemd-devel
3737 ./deps.sh
3838
39+ - name : check out test-vectors (persistent)
40+ run : |
41+ COMMIT_SHA=$(cat scripts/test-vectors-commit-sha.txt)
42+ TEST_VECTORS_PATH="/data/svc_firedancer/test-vectors/${COMMIT_SHA}"
43+ if [[ ! -d "${TEST_VECTORS_PATH}" ]]; then
44+ mkdir -p /data/svc_firedancer/test-vectors
45+ git clone https://github.com/firedancer-io/test-vectors.git "${TEST_VECTORS_PATH}"
46+ git -C "${TEST_VECTORS_PATH}" checkout "${COMMIT_SHA}"
47+ fi
48+ mkdir -p dump
49+ ln -sf "${TEST_VECTORS_PATH}" dump/test-vectors
50+
3951 - name : Check lints and clippy
4052 run : |
4153 cargo fmt --all -- --check
Original file line number Diff line number Diff line change @@ -28,20 +28,16 @@ echo "Using test-vectors commit: $GIT_REF"
2828# Fetch/update test-vectors repo
2929if [ ! -d dump/test-vectors ]; then
3030 echo " Cloning test-vectors repository..."
31- (cd dump && git clone --depth=1 -q https://github.com/firedancer-io/test-vectors.git)
32- else
33- echo " Updating test-vectors repository..."
34- (cd dump/test-vectors && git fetch -q origin " $GIT_REF " || true)
31+ (cd dump && git clone --depth=1 -q --no-tags https://github.com/firedancer-io/test-vectors.git)
3532fi
3633
3734# Checkout specific commit non-destructively
3835(
3936 cd dump/test-vectors
40- if ! git cat-file -e " $GIT_REF " ^{commit} 2> /dev/null ; then
41- echo " Fetching test vectors commit $GIT_REF ... "
42- git fetch -q origin " $GIT_REF "
37+ if ! git checkout -q $GIT_REF ; then
38+ git remote update
39+ git checkout -q $GIT_REF
4340 fi
44- git checkout -q --detach " $GIT_REF "
4541)
4642
4743# Show the commit hashes being used
You can’t perform that action at this time.
0 commit comments