commit
e8c2a3c8f5
|
@ -116,7 +116,20 @@ emqx_test(){
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
"rpm")
|
"rpm")
|
||||||
yum install -y "${PACKAGE_PATH}/${packagename}"
|
# yum wants python2
|
||||||
|
if [[ "${SYSTEM:-}" == "amzn2" ]]; then
|
||||||
|
alternatives --list | grep python && alternatives --set python /usr/bin/python2
|
||||||
|
fi
|
||||||
|
YUM_RES="$(yum install -y "${PACKAGE_PATH}/${packagename}"| tee /dev/null)"
|
||||||
|
if [[ $YUM_RES =~ "Failed" ]]; then
|
||||||
|
echo "yum install failed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
# restore python3
|
||||||
|
if [[ "${SYSTEM:-}" == "amzn2" ]]; then
|
||||||
|
alternatives --list | grep python && alternatives --set python /usr/bin/python3
|
||||||
|
fi
|
||||||
|
|
||||||
if ! rpm -q "${PROFILE}" | grep -q "${PROFILE}"; then
|
if ! rpm -q "${PROFILE}" | grep -q "${PROFILE}"; then
|
||||||
echo "package install error"
|
echo "package install error"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -225,7 +225,7 @@ jobs:
|
||||||
path: .
|
path: .
|
||||||
- name: unzip source code
|
- name: unzip source code
|
||||||
run: unzip -q source.zip
|
run: unzip -q source.zip
|
||||||
- uses: docker/setup-qemu-action@v3
|
- uses: docker/setup-qemu-action@v2
|
||||||
with:
|
with:
|
||||||
image: tonistiigi/binfmt:latest
|
image: tonistiigi/binfmt:latest
|
||||||
platforms: all
|
platforms: all
|
||||||
|
|
Loading…
Reference in New Issue