Add workflow for running tests in big endian platform.

This commit is contained in:
Victor M. Alvarez
2023-02-22 12:46:16 +01:00
parent 32ae80d536
commit 973402ae6d
2 changed files with 43 additions and 2 deletions
+27
View File
@@ -0,0 +1,27 @@
name: Test Big Endian.
on: [push, pull_request]
jobs:
one:
runs-on: ubuntu-latest
steps:
- name: Setup multiarch/qemu-user-static
run: |
docker run --rm --privileged multiarch/qemu-user-static:register --reset
- name: ubuntu-core:s390x-focal
uses: docker://multiarch/ubuntu-core:s390x-focal
with:
args: >
bash -c
"
apt-get update -y &&
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata &&
apt-get install -y automake libtool make gcc pkg-config bison git &&
git clone https://github.com/VirusTotal/yara &&
cd yara &&
./bootstrap.sh &&
./configure --disable-proc-scan &&
make &&
make check
"
+16 -2
View File
@@ -42,7 +42,19 @@ case $host_alias in
i?86-*-mingw*) CFLAGS="$CFLAGS -D__MINGW_USE_VC2005_COMPAT" ;;
esac
case $host_os in
AC_ARG_ENABLE([proc-scan],
[AS_HELP_STRING([--disable-proc-scan], [disable process scanning])],
[if test x$enableval = xyes; then
AC_MSG_ERROR([
*****************************************************************
Process scanning is enabled by default, remove --enable-proc-scan.
*****************************************************************
])
else
proc_interface=none
CFLAGS="$CFLAGS -DUSE_NO_PROC"
fi],
[case $host_os in
darwin*) CFLAGS="$CFLAGS -I/opt/local/include"
# Starting with Mac OS X 10.11 (El Capitan) the OpenSSL headers
# are in /usr/local/opt/openssl/include
@@ -74,7 +86,9 @@ case $host_os in
CFLAGS="$CFLAGS -DUSE_NO_PROC"
proc_interface=none
jemalloc_prefix= ;;
esac
esac])
ACX_PTHREAD(
[LIBS="$PTHREAD_LIBS $LIBS"