Skip to content

Commit

Permalink
Cross-platform compilation can't direct execute buildutils/installbaz…
Browse files Browse the repository at this point in the history
…el.sh.
  • Loading branch information
WeiChungHsu committed Jun 11, 2024
1 parent b7d523c commit 30ed446
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tools/cuttlefish-host-image-installer/build_cf_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ apt-get install -y git ca-certificates less
apt-get install -y build-essential
apt-get install -y devscripts equivs fakeroot dpkg-dev
apt install wget
wget "https://github.com/bazelbuild/bazelisk/releases/download/v1.19.0/bazelisk-linux-arm64"
mv bazelisk-linux-arm64 /usr/local/bin/bazel
chmod 0755 /usr/local/bin/bazel
export PATH=$PATH:/usr/local/bin
mkdir -p /tmp/b1
cd /tmp/b1
Expand All @@ -33,10 +39,6 @@ export CI_PIPELINE_ID="${CI_PIPELINE_ID}"
EOF
fi

cat <<EOF >> "${TDIR}"/buildscript_cf_1
sudo bash ../buildutils/installbazel.sh
EOF

cat build_cf_packages_native.sh >> "${TDIR}"/buildscript_cf_1

cat <<EOF >> "${TDIR}"/buildscript_cf_1
Expand Down

0 comments on commit 30ed446

Please sign in to comment.