From 409f0bdd2e107a9e377d63d3fd293da4198f6814 Mon Sep 17 00:00:00 2001 From: Echo Date: Sun, 12 Apr 2026 18:18:36 +0000 Subject: [PATCH] Fix build jobs: remove sudo from apt-get commands (node:18 runs as root) --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81d1f2d..e32039d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,8 +97,8 @@ jobs: - uses: dtolnay/rust-toolchain@stable - name: Install build dependencies run: | - sudo apt-get update - sudo apt-get install -y debhelper cargo rustc libsystemd-dev pkg-config + apt-get update + apt-get install -y debhelper cargo rustc libsystemd-dev pkg-config - name: Build Debian package run: dpkg-buildpackage -us -uc -b - name: Upload .deb artifact @@ -125,8 +125,8 @@ jobs: - uses: dtolnay/rust-toolchain@stable - name: Install RPM build tools run: | - sudo apt-get update - sudo apt-get install -y rpm rpmbuild cargo rustc libsystemd-dev pkg-config + apt-get update + apt-get install -y rpm rpmbuild cargo rustc libsystemd-dev pkg-config - name: Build RPM package run: | rpmbuild -ba linux-patch-api.spec