Private
Public Access
1
0

Fix build jobs: remove sudo from apt-get commands (node:18 runs as root)

This commit is contained in:
2026-04-12 18:18:36 +00:00
parent 73495aad17
commit 409f0bdd2e

View File

@ -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