From 70527802fa083161fa931bf911bfa36b3932addb Mon Sep 17 00:00:00 2001 From: Echo Date: Fri, 24 Apr 2026 15:17:39 +0000 Subject: [PATCH] ci: Remove sudo from apt-get commands - runner executes as root in host mode - sudo not available in all execution contexts - /root/.cache/act/ workspace indicates root user execution - apt-get works directly without sudo when running as root --- .gitea/workflows/ci.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 56a9e81..d0c9230 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -20,8 +20,8 @@ jobs: steps: - name: Install checkout dependencies run: | - sudo apt-get update -qq - sudo apt-get install -y --no-install-recommends curl ca-certificates + apt-get update -qq + apt-get install -y --no-install-recommends curl ca-certificates - name: Checkout repository run: | @@ -54,8 +54,8 @@ jobs: steps: - name: Install checkout dependencies run: | - sudo apt-get update -qq - sudo apt-get install -y --no-install-recommends curl ca-certificates + apt-get update -qq + apt-get install -y --no-install-recommends curl ca-certificates - name: Checkout repository run: | @@ -68,8 +68,8 @@ jobs: - name: Install system dependencies run: | - sudo apt-get update -qq - sudo apt-get install -y --no-install-recommends pkg-config libssl-dev + apt-get update -qq + apt-get install -y --no-install-recommends pkg-config libssl-dev - name: Ensure Rust toolchain run: | @@ -102,8 +102,8 @@ jobs: steps: - name: Install checkout dependencies run: | - sudo apt-get update -qq - sudo apt-get install -y --no-install-recommends curl ca-certificates + apt-get update -qq + apt-get install -y --no-install-recommends curl ca-certificates - name: Checkout repository run: | @@ -116,8 +116,8 @@ jobs: - name: Install system dependencies run: | - sudo apt-get update -qq - sudo apt-get install -y --no-install-recommends pkg-config libssl-dev + apt-get update -qq + apt-get install -y --no-install-recommends pkg-config libssl-dev - name: Ensure Rust toolchain run: | @@ -139,8 +139,8 @@ jobs: steps: - name: Install checkout dependencies run: | - sudo apt-get update -qq - sudo apt-get install -y --no-install-recommends curl ca-certificates + apt-get update -qq + apt-get install -y --no-install-recommends curl ca-certificates - name: Checkout repository run: | @@ -175,8 +175,8 @@ jobs: steps: - name: Install checkout dependencies run: | - sudo apt-get update -qq - sudo apt-get install -y --no-install-recommends curl ca-certificates + apt-get update -qq + apt-get install -y --no-install-recommends curl ca-certificates - name: Checkout repository run: | @@ -209,8 +209,8 @@ jobs: steps: - name: Install system dependencies run: | - sudo apt-get update -qq - sudo apt-get install -y --no-install-recommends \ + apt-get update -qq + apt-get install -y --no-install-recommends \ curl pkg-config libssl-dev ca-certificates \ git nodejs npm dpkg-dev python3