From 78b7ce94a0135c303a1d54efdabc9349d524fdc2 Mon Sep 17 00:00:00 2001 From: cfc4n Date: Sat, 11 Nov 2023 11:53:04 +0800 Subject: [PATCH] remove sudo command in docker container. Signed-off-by: cfc4n --- .github/workflows/go-c-cpp.yml | 3 ++- .github/workflows/release.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go-c-cpp.yml b/.github/workflows/go-c-cpp.yml index 5b71b3098..6ff2f7b00 100644 --- a/.github/workflows/go-c-cpp.yml +++ b/.github/workflows/go-c-cpp.yml @@ -179,7 +179,8 @@ jobs: apt-get update apt-get install --yes wget git build-essential pkgconf libelf-dev llvm-12 clang-12 linux-tools-generic linux-tools-common wget https://go.dev/dl/go1.21.0.linux-arm64.tar.gz - sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.21.0.linux-arm64.tar.gz + rm -rf /usr/local/go + tar -C /usr/local -xzf go1.21.0.linux-arm64.tar.gz # Produce a binary artifact and place it in the mounted volume run: | uname -a diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2d0f0c1fc..3d2833fcb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -128,7 +128,8 @@ jobs: apt-get update apt-get install --yes wget git build-essential pkgconf libelf-dev llvm-12 clang-12 linux-tools-generic linux-tools-common wget https://go.dev/dl/go1.21.0.linux-arm64.tar.gz - sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.21.0.linux-arm64.tar.gz + rm -rf /usr/local/go + tar -C /usr/local -xzf go1.21.0.linux-arm64.tar.gz # Produce a binary artifact and place it in the mounted volume run: | uname -a