Skip to content

Commit 035f899

Browse files
committed
[bazel] Remove bazel cache from airgapped
Signed-off-by: Douglas Reis <doreis@lowrisc.org>
1 parent 66ef4a4 commit 035f899

2 files changed

Lines changed: 1 addition & 12 deletions

File tree

ci/scripts/test-airgapped-build.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ sudo ip netns exec airgapped sudo -u "$USER" \
3131
BAZEL_BITSTREAMS_CACHE="${PWD}/bazel-airgapped/bitstreams-cache" \
3232
OT_AIRGAPPED="true" \
3333
BITSTREAM="--offline latest" \
34-
"${PWD}/bazel-airgapped/bazel" build \
35-
--distdir="${PWD}/bazel-airgapped/bazel-distdir" \
34+
"${PWD}/bazel-airgapped/bazel" build \
3635
--vendor_dir="${PWD}/bazel-airgapped/bazel-vendor" \
3736
--define DISABLE_VERILATOR_BUILD=true \
3837
//sw/device/silicon_creator/rom:mask_rom

util/prep-bazel-airgapped-build.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,6 @@ if [[ ${AIRGAPPED_DIR_CONTENTS} == "ALL" || \
116116
--output bazel
117117
chmod +x bazel
118118
popd
119-
120-
# Make Bazel fetch its own dependencies to the repository cache:
121-
# https://bazel.build/run/build#repository_cache_with_bazel_7_or_later
122-
mkdir -p "${BAZEL_AIRGAPPED_DIR}/empty_workspace"
123-
pushd "${BAZEL_AIRGAPPED_DIR}/empty_workspace"
124-
touch MODULE.bazel
125-
cp "${REPO_TOP}/.bazelversion" .
126-
../bazel fetch --repository_cache="${BAZEL_CACHEDIR}"
127-
popd
128-
rm -rf "${BAZEL_AIRGAPPED_DIR}/empty_workspace"
129119
fi
130120

131121
################################################################################

0 commit comments

Comments
 (0)