2021-01-29 00:48:18 +00:00
|
|
|
name: 32-bit
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-10-06 21:07:49 +00:00
|
|
|
branches:
|
|
|
|
- master
|
2021-01-29 00:48:18 +00:00
|
|
|
paths-ignore:
|
|
|
|
- 'docs/**'
|
2021-02-05 05:55:58 +00:00
|
|
|
- '.github/workflows/**'
|
|
|
|
- '!.github/workflows/test_32.yml'
|
2021-05-27 02:59:18 +00:00
|
|
|
pull_request:
|
2021-01-29 00:48:18 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
trick_32bit:
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
container: docker://centos:7
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@master
|
|
|
|
- name: Add yum repo
|
2021-02-04 23:08:15 +00:00
|
|
|
run: yum -y install epel-release.noarch && yum -y update
|
2021-01-29 00:48:18 +00:00
|
|
|
- name: Install dependency group
|
2021-02-04 23:10:31 +00:00
|
|
|
run: yum -y groupinstall "Development tools" && yum -y update
|
2021-01-29 00:48:18 +00:00
|
|
|
- name: Install other dependencies
|
|
|
|
run: >
|
2021-02-06 01:32:36 +00:00
|
|
|
yum remove -y swig && yum install -y llvm llvm-devel llvm-static clang clang-devel
|
2021-01-29 00:48:18 +00:00
|
|
|
bison flex gcc gcc-c++ libxml2-devel make cmake wget
|
|
|
|
ncurses-devel openmotif openmotif-devel python-devel perl
|
2021-02-05 22:48:49 +00:00
|
|
|
perl-Digest-MD5 swig3 zlib-devel glibc.x86_64 libxml2-devel.i686
|
2021-01-29 00:48:18 +00:00
|
|
|
ncurses-devel.i686 zlib-devel.i686 python-libs.i686
|
|
|
|
expat-2.1.0-10.el7_3.i686 glibc-devel-2.17-196.el7.i686
|
|
|
|
glibc.i686 glibc-devel.i686 udunits2 udunits2-devel gtest-devel.i686
|
|
|
|
java-11-openjdk java-11-openjdk-devel expat-devel.i686
|
|
|
|
which gcc-gfortran git wget gsl-devel gtest-devel gsl-devel.i686
|
2021-05-17 16:08:04 +00:00
|
|
|
maven udunits2 udunits2-devel zip
|
2021-01-29 00:48:18 +00:00
|
|
|
- name: Symlink python
|
|
|
|
run: |
|
|
|
|
cd /usr/lib
|
|
|
|
ln -s ./libpython2.7.so.1.0 libpython2.7.so
|
|
|
|
- name: Install Udunits (32 bit)
|
|
|
|
run: |
|
2021-02-05 06:03:19 +00:00
|
|
|
cd /
|
2022-02-02 00:42:13 +00:00
|
|
|
curl --retry 4 -O https://artifacts.unidata.ucar.edu/repository/downloads-udunits/current/udunits-2.2.28.tar.gz
|
2021-01-29 00:48:18 +00:00
|
|
|
tar xfvz udunits-2.2.28.tar.gz
|
2021-02-05 06:03:19 +00:00
|
|
|
rm -rf udunits-2.2.28.tar.gz
|
2021-01-29 00:48:18 +00:00
|
|
|
cd udunits-2.2.28
|
|
|
|
export CFLAGS="-m32"
|
2021-02-05 05:47:53 +00:00
|
|
|
./configure
|
2021-01-29 00:48:18 +00:00
|
|
|
make
|
|
|
|
make install
|
|
|
|
- name: Install GTest (32 bit)
|
|
|
|
run: |
|
|
|
|
wget https://github.com/google/googletest/archive/release-1.8.0.tar.gz
|
|
|
|
tar xfvz release-1.8.0.tar.gz
|
|
|
|
cd googletest-release-1.8.0/googletest
|
|
|
|
export CFLAGS="-m32"
|
|
|
|
export CXXFLAGS="-m32"
|
|
|
|
cmake .
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
- name: Build Trick
|
|
|
|
run: |
|
|
|
|
yum -y update && yum clean all
|
|
|
|
export MAKEFLAGS=-j`nproc`
|
|
|
|
./configure --without-hdf5 --enable-32bit
|
|
|
|
make
|
|
|
|
- name: Run tests
|
2022-07-27 20:00:33 +00:00
|
|
|
run: |
|
|
|
|
echo $MAKEFLAGS $CXXFLAGS $CFLAGS
|
|
|
|
make test
|