ci: get rid of sudo
diff --git a/.github/bin/install-bazel.sh b/.github/bin/install-bazel.sh index 612456d..af67ec3 100755 --- a/.github/bin/install-bazel.sh +++ b/.github/bin/install-bazel.sh
@@ -18,6 +18,6 @@ exit 1 fi wget --no-verbose "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel_${BAZEL_VERSION}-linux-x86_64.deb" -O /tmp/bazel.deb -sudo dpkg -i /tmp/bazel.deb || true -sudo apt-get -f install +dpkg -i /tmp/bazel.deb || true +apt-get -f install bazel --version
diff --git a/.github/bin/set-compiler.sh b/.github/bin/set-compiler.sh index b2c535a..99d007f 100755 --- a/.github/bin/set-compiler.sh +++ b/.github/bin/set-compiler.sh
@@ -15,12 +15,12 @@ VERSION=$1 -sudo dpkg --list | grep gcc -sudo dpkg --list | grep libstdc++ +dpkg --list | grep gcc +dpkg --list | grep libstdc++ -sudo ln -sf /usr/bin/gcc-$VERSION /usr/bin/gcc -sudo ln -sf /usr/bin/g++-$VERSION /usr/bin/g++ -sudo ln -sf /usr/bin/gcov-$VERSION /usr/bin/gcov +ln -sf /usr/bin/gcc-$VERSION /usr/bin/gcc +ln -sf /usr/bin/g++-$VERSION /usr/bin/g++ +ln -sf /usr/bin/gcov-$VERSION /usr/bin/gcov gcc --version || true gcov --version
diff --git a/.github/workflows/verible-ci.yml b/.github/workflows/verible-ci.yml index 67e2c2c..0f44fad 100644 --- a/.github/workflows/verible-ci.yml +++ b/.github/workflows/verible-ci.yml
@@ -37,7 +37,7 @@ - name: Install Dependencies run: | - sudo apt -qq -y install clang-format + apt -qq -y install clang-format clang-format --version - name: Run formatting style check @@ -61,7 +61,7 @@ - name: Install Dependencies run: | - sudo apt -qq -y install clang-tidy-11 + apt -qq -y install clang-tidy-11 echo "TMPDIR=/tmp" >> $GITHUB_ENV - name: Create Cache Timestamp @@ -133,7 +133,7 @@ run: | set -x source ./.github/settings.sh - sudo apt -qq -y install clang-10 + apt -qq -y install clang-10 ./.github/bin/set-compiler.sh 9 ./.github/bin/install-bazel.sh