mirror of
https://github.com/naveenrajm7/rpmbuild.git
synced 2025-07-12 04:13:50 +00:00
Adds an action to install build dependencies before running rpmbuild
Signed-off-by: Cyrille Bollu <cyrille@debian-BULLSEYE-live-builder-AMD64>
This commit is contained in:
@ -56,6 +56,9 @@ async function run() {
|
|||||||
await exec.exec(`ln -s /github/home/rpmbuild/SOURCES/${name}-${version}.tar.gz /github/home/rpmbuild/SOURCES/${name}.tar.gz`);
|
await exec.exec(`ln -s /github/home/rpmbuild/SOURCES/${name}-${version}.tar.gz /github/home/rpmbuild/SOURCES/${name}.tar.gz`);
|
||||||
process.env.GIT_DIR = oldGitDir;
|
process.env.GIT_DIR = oldGitDir;
|
||||||
|
|
||||||
|
// Installs build dependencies
|
||||||
|
await exec.exec(`yum-builddep ${specFile.destFullPath}`);
|
||||||
|
|
||||||
// Execute rpmbuild , -ba generates both RPMS and SPRMS
|
// Execute rpmbuild , -ba generates both RPMS and SPRMS
|
||||||
try {
|
try {
|
||||||
await exec.exec(
|
await exec.exec(
|
||||||
|
Reference in New Issue
Block a user