Fix build jobs: remove sudo from apt-get commands (node:18 runs as root)
This commit is contained in:
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
Reference in New Issue
Block a user