Skip to content

Commit 0c28dd1

Browse files
committed
ci: verify build in action
1 parent 9c854ea commit 0c28dd1

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,24 @@ jobs:
107107
fi
108108
;;
109109
esac
110-
110+
PATH_BK=$(pwd)
111+
# Verify build
112+
case "$ARCHITECTURE" in
113+
x86_64|x86)
114+
cd $ARCHITECTURE/output && ./rurima -v||exit 1
115+
cd $PATH_BK
116+
;;
117+
aarch64|armhf|ppc64le|armv7|riscv64|s390x|loongarch64)
118+
if [ "$ARCHITECTURE" = "armv7" ]; then
119+
cd $ARCHITECTURE/output && /usr/bin/qemu-arm-static ./rurima -v||exit 1
120+
cd $PATH_BK
121+
else
122+
cd $ARCHITECTURE/output && /usr/bin/qemu-$ARCHITECTURE-static ./rurima -v||exit 1
123+
cd $PATH_BK
124+
fi
125+
;;
126+
esac
127+
cd $PATH_BK
111128
(cd $ARCHITECTURE/output && tar -cf ../../../$ARCHITECTURE.tar .)
112129
113130
cd $GITHUB_WORKSPACE

0 commit comments

Comments
 (0)