Fix the spectool parameter (and some other general cleanup)
Some checks failed
Build docker image / build-and-publish (push) Has been cancelled
Some checks failed
Build docker image / build-and-publish (push) Has been cancelled
This commit is contained in:
parent
62eb51cd6d
commit
3ae1081564
1 changed files with 5 additions and 4 deletions
|
@ -15,16 +15,16 @@ for SPEC in ${SPECS[@]}; do
|
||||||
SPEC_NAME=$(basename ${SPEC})
|
SPEC_NAME=$(basename ${SPEC})
|
||||||
CONFIGURATION="${SYSTEM}-${ARCH}"
|
CONFIGURATION="${SYSTEM}-${ARCH}"
|
||||||
|
|
||||||
echo "::debug::spec file: ${INPUT_SPEC}"
|
echo "::debug::spec file: ${SPEC}"
|
||||||
echo "::debug::target: ${INPUT_SYSTEM}-${INPUT_ARCH}"
|
echo "::debug::target: ${SYSTEM}-${ARCH}"
|
||||||
echo "::debug::nocheck: ${INPUT_NOCHECK}"
|
echo "::debug::nocheck: ${NOCHECK}"
|
||||||
|
|
||||||
echo "Building ${SPEC_NAME} for ${CONFIGURATION}"
|
echo "Building ${SPEC_NAME} for ${CONFIGURATION}"
|
||||||
|
|
||||||
echo "::group::Building SRPM"
|
echo "::group::Building SRPM"
|
||||||
cd $(dirname ${SPEC})
|
cd $(dirname ${SPEC})
|
||||||
|
|
||||||
spectool -g ${SPEC}
|
spectool -g ${SPEC_NAME}
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "::error::Failed to download sources"
|
echo "::error::Failed to download sources"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -54,4 +54,5 @@ for SPEC in ${SPECS[@]}; do
|
||||||
RPMS=i$(grep Wrote result/build.log | grep "/RPMS/" | cut -d" " -f 2)
|
RPMS=i$(grep Wrote result/build.log | grep "/RPMS/" | cut -d" " -f 2)
|
||||||
echo "::debug::rpms: ${RPMS}"
|
echo "::debug::rpms: ${RPMS}"
|
||||||
echo "rpms=${RPMS}" >> ${GITHUB_OUTPUT}
|
echo "rpms=${RPMS}" >> ${GITHUB_OUTPUT}
|
||||||
|
cd -
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue