CI: use python-yaml instead of yq if needed (fedora)
This commit is contained in:
parent
2c52adc8e8
commit
4406a879bc
@ -29,11 +29,16 @@ if test -z "$BUILDDIR" ; then
|
|||||||
test -d "/build" && BUILDDIR=/build
|
test -d "/build" && BUILDDIR=/build
|
||||||
fi
|
fi
|
||||||
if test -z "$CMAKE_ARGS" -a -n "$1" ; then
|
if test -z "$CMAKE_ARGS" -a -n "$1" ; then
|
||||||
test -x "$(which yq)" || { echo "! No yq command for finding CMAKE_ARGS for workflow $1" ; exit 1 ; }
|
|
||||||
_d="$SRCDIR/.github/workflows/$1"
|
_d="$SRCDIR/.github/workflows/$1"
|
||||||
test -f "$_d" || _d="$SRCDIR/.github/workflows/$1.yml"
|
test -f "$_d" || _d="$SRCDIR/.github/workflows/$1.yml"
|
||||||
test -f "$_d" || { echo "! No workflow $1" ; exit 1 ; }
|
test -f "$_d" || { echo "! No workflow $1" ; exit 1 ; }
|
||||||
CMAKE_ARGS=$(yq ".env.CMAKE_ARGS" "$_d")
|
|
||||||
|
if test -x "$(which yq)" ; then
|
||||||
|
CMAKE_ARGS=$(yq ".env.CMAKE_ARGS" "$_d")
|
||||||
|
else
|
||||||
|
CMAKE_ARGS=$(python3 -c 'import yaml ; f=open("'$_d'","r"); print(yaml.safe_load(f)["env"]["CMAKE_ARGS"]);')
|
||||||
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Sanity check
|
# Sanity check
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
yum install -y bison flex git make cmake gcc-c++ ninja-build
|
yum install -y bison flex git make cmake gcc-c++ ninja-build
|
||||||
yum install -y yaml-cpp-devel libpwquality-devel parted-devel python-devel gettext gettext-devel
|
yum install -y yaml-cpp-devel libpwquality-devel parted-devel python-devel gettext gettext-devel python3-pyyaml
|
||||||
yum install -y libicu-devel libatasmart-devel
|
yum install -y libicu-devel libatasmart-devel
|
||||||
yum install -y boost-devel
|
yum install -y boost-devel
|
||||||
# Qt6/KF6 dependencies
|
# Qt6/KF6 dependencies
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
yum install -y bison flex git make cmake gcc-c++ ninja-build
|
yum install -y bison flex git make cmake gcc-c++ ninja-build
|
||||||
yum install -y yaml-cpp-devel libpwquality-devel parted-devel python-devel gettext gettext-devel
|
yum install -y yaml-cpp-devel libpwquality-devel parted-devel python-devel gettext gettext-devel python3-pyyaml
|
||||||
yum install -y libicu-devel libatasmart-devel
|
yum install -y libicu-devel libatasmart-devel
|
||||||
# Qt6/KF6 dependencies
|
# Qt6/KF6 dependencies
|
||||||
yum install -y qt6-qtbase-devel qt6-linguist qt6-qtbase-private-devel qt6-qtdeclarative-devel qt6-qtsvg-devel qt6-qttools-devel
|
yum install -y qt6-qtbase-devel qt6-linguist qt6-qtbase-private-devel qt6-qtdeclarative-devel qt6-qtsvg-devel qt6-qttools-devel
|
||||||
|
Loading…
Reference in New Issue
Block a user