Fix build-rpm: use node:18 container (has Node.js for GitHub Actions), update to actions v4
This commit is contained in:
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -113,15 +113,16 @@ jobs:
|
|||||||
build-rpm:
|
build-rpm:
|
||||||
name: Build RPM Package
|
name: Build RPM Package
|
||||||
runs-on: linux
|
runs-on: linux
|
||||||
container: fedora:latest
|
container: node:18
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
- name: Install RPM build tools
|
- name: Install RPM build tools
|
||||||
run: |
|
run: |
|
||||||
dnf install -y rpm-build gcc cargo rust libsystemd-devel pkgconfig-pkg-config
|
apt-get update
|
||||||
|
apt-get install -y rpm rpm-common gcc build-essential cargo rustc libsystemd-dev pkg-config
|
||||||
- name: Build release binary
|
- name: Build release binary
|
||||||
run: cargo build --release
|
run: cargo build --release
|
||||||
- name: Build RPM package
|
- name: Build RPM package
|
||||||
|
|||||||
Reference in New Issue
Block a user