mirror of
https://github.com/VirusTotal/yara.git
synced 2026-10-12 02:10:00 +00:00
Add workflow for running tests in big endian platform.
This commit is contained in:
@@ -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
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user