Compare commits
2 commits
47234433a8
...
914981620f
Author | SHA1 | Date | |
---|---|---|---|
914981620f | |||
7dccc94e2b |
1 changed files with 7 additions and 3 deletions
|
@ -8,6 +8,10 @@ NOCHECK=${INPUT_NOCHECK}
|
||||||
SPEC_NAME=$(basename ${SPEC})
|
SPEC_NAME=$(basename ${SPEC})
|
||||||
CONFIGURATION="${SYSTEM}-${ARCH}"
|
CONFIGURATION="${SYSTEM}-${ARCH}"
|
||||||
|
|
||||||
|
echo "::debug::spec file: ${INPUT_SPEC}"
|
||||||
|
echo "::debug::target: ${INPUT_SYSTEM}-${INPUT_ARCH}"
|
||||||
|
echo "::debug::nocheck: ${INPUT_NOCHECK}"
|
||||||
|
|
||||||
echo "Building ${SPEC_NAME} for ${CONFIGURATION}"
|
echo "Building ${SPEC_NAME} for ${CONFIGURATION}"
|
||||||
|
|
||||||
echo "::group::Building SRPM"
|
echo "::group::Building SRPM"
|
||||||
|
@ -15,13 +19,13 @@ cd $(dirname ${SPEC})
|
||||||
|
|
||||||
spectool -g ${SPEC}
|
spectool -g ${SPEC}
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "::error Failed to download sources"
|
echo "::error::Failed to download sources"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mock -r "${SYSTEM}-${ARCH}" --buildsrpm --spec ${SPEC_NAME} --sources . --resultdir result
|
mock -r "${SYSTEM}-${ARCH}" --buildsrpm --spec ${SPEC_NAME} --sources . --resultdir result
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "::error Failed to build SRPM"
|
echo "::error::Failed to build SRPM"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
@ -35,7 +39,7 @@ if [ ${NOCHECK,,} == "true"]; then
|
||||||
fi
|
fi
|
||||||
mock -r "${SYSTEM}-${ARCH}" --resultdir result ${OPTS} ${SRPM}
|
mock -r "${SYSTEM}-${ARCH}" --resultdir result ${OPTS} ${SRPM}
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "::error Failed to build RPM"
|
echo "::error::Failed to build RPM"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
Loading…
Reference in a new issue