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 - uses: dtolnay/rust-toolchain@stable
- name: Install build dependencies - name: Install build dependencies
run: | run: |
sudo apt-get update apt-get update
sudo apt-get install -y debhelper cargo rustc libsystemd-dev pkg-config apt-get install -y debhelper cargo rustc libsystemd-dev pkg-config
- name: Build Debian package - name: Build Debian package
run: dpkg-buildpackage -us -uc -b run: dpkg-buildpackage -us -uc -b
- name: Upload .deb artifact - name: Upload .deb artifact
@ -125,8 +125,8 @@ jobs:
- uses: dtolnay/rust-toolchain@stable - uses: dtolnay/rust-toolchain@stable
- name: Install RPM build tools - name: Install RPM build tools
run: | run: |
sudo apt-get update apt-get update
sudo apt-get install -y rpm rpmbuild cargo rustc libsystemd-dev pkg-config apt-get install -y rpm rpmbuild cargo rustc libsystemd-dev pkg-config
- name: Build RPM package - name: Build RPM package
run: | run: |
rpmbuild -ba linux-patch-api.spec rpmbuild -ba linux-patch-api.spec