Skip to content

Commit

Permalink
[ci] Add missing sudo in CI
Browse files Browse the repository at this point in the history
We are switching to use non-root GitHub action runners, which need
sudo for global package installation.

Signed-off-by: Gary Guo <gary.guo@lowrisc.org>
  • Loading branch information
nbdd0121 committed Mar 15, 2024
1 parent eb668b0 commit 39f28ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/install-build-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ case "$ID-$VERSION_ID" in
cd build/verible
curl -Ls -o verible.tar.gz "https://github.com/google/verible/releases/download/$VERIBLE_VERSION/verible-$VERIBLE_VERSION-Ubuntu-$VERSION_ID-$VERSION_CODENAME-x86_64.tar.gz"
$SUDO_CMD mkdir -p /tools/verible && $SUDO_CMD chmod 777 /tools/verible
tar -C /tools/verible -xf verible.tar.gz --strip-components=1
$SUDO_CMD tar -C /tools/verible -xf verible.tar.gz --strip-components=1
echo "##vso[task.prependpath]/tools/verible/bin"
echo "/tools/verible/bin" >> $GITHUB_PATH
;;
Expand All @@ -101,6 +101,6 @@ TOOLCHAIN_URL="https://github.com/lowRISC/lowrisc-toolchains/releases/download/$
mkdir -p build/toolchain
curl -Ls -o build/toolchain/rv32-toolchain.tar.xz "$TOOLCHAIN_URL"
$SUDO_CMD mkdir -p /tools/riscv && $SUDO_CMD chmod 777 /tools/riscv
tar -C /tools/riscv -xf build/toolchain/rv32-toolchain.tar.xz --strip-components=1
$SUDO_CMD tar -C /tools/riscv -xf build/toolchain/rv32-toolchain.tar.xz --strip-components=1
echo "##vso[task.prependpath]/tools/riscv/bin"
echo "/tools/riscv/bin" >> $GITHUB_PATH

0 comments on commit 39f28ba

Please sign in to comment.