1103 32bit own test suite (#1104)

* Create test_32.yml

closes #1103
This commit is contained in:
Scott Fennell 2021-01-28 18:48:18 -06:00 committed by GitHub
parent 427a5ce630
commit 808a28c076
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 66 additions and 60 deletions

62
.github/workflows/test_32.yml vendored Normal file
View File

@ -0,0 +1,62 @@
name: 32-bit
on:
push:
paths-ignore:
- 'docs/**'
jobs:
trick_32bit:
runs-on: ubuntu-18.04
container: docker://centos:7
steps:
- name: Checkout repository
uses: actions/checkout@master
- name: Add yum repo
run: yum -y install epel-release.noarch
- name: Install dependency group
run: yum -y groupinstall "Development tools"
- name: Install other dependencies
run: >
yum install -y llvm llvm-devel llvm-static clang clang-devel
bison flex gcc gcc-c++ libxml2-devel make cmake wget
ncurses-devel openmotif openmotif-devel python-devel perl
perl-Digest-MD5 swig zlib-devel glibc.x86_64 libxml2-devel.i686
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
maven udunits2 udunits2-devel
- name: Symlink python
run: |
cd /usr/lib
ln -s ./libpython2.7.so.1.0 libpython2.7.so
- name: Install Udunits (32 bit)
run: |
curl --retry 4 -O https://artifacts.unidata.ucar.edu/repository/downloads-udunits/udunits-2.2.28.tar.gz
tar xfvz udunits-2.2.28.tar.gz
rm udunits-2.2.28.tar.gz
cd udunits-2.2.28
export CFLAGS="-m32"
./configure --prefix=/usr
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
run: make test

View File

@ -1,4 +1,4 @@
name: Trick CI - Linux
name: Linux
on:
push:
@ -136,59 +136,3 @@ jobs:
make
- name: Test
run: make test
trick_32bit:
runs-on: ubuntu-18.04
container: docker://centos:7
steps:
- name: Checkout repository
uses: actions/checkout@master
- name: Add yum repo
run: yum -y install epel-release.noarch
- name: Install dependency group
run: yum -y groupinstall "Development tools"
- name: Install other dependencies
run: >
yum install -y llvm llvm-devel llvm-static clang clang-devel
bison flex gcc gcc-c++ libxml2-devel make cmake wget
ncurses-devel openmotif openmotif-devel python-devel perl
perl-Digest-MD5 swig zlib-devel glibc.x86_64 libxml2-devel.i686
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
maven udunits2 udunits2-devel
- name: Symlink python
run: |
cd /usr/lib
ln -s ./libpython2.7.so.1.0 libpython2.7.so
- name: Install Udunits (32 bit)
run: |
curl --retry 4 -O https://artifacts.unidata.ucar.edu/repository/downloads-udunits/udunits-2.2.28.tar.gz
tar xfvz udunits-2.2.28.tar.gz
rm udunits-2.2.28.tar.gz
cd udunits-2.2.28
export CFLAGS="-m32"
./configure --prefix=/usr
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
run: make test

View File

@ -1,4 +1,4 @@
name: Trick CI - macOS
name: macOS
on:
push:

View File

@ -6,13 +6,13 @@
<p align=left>
<a href="https://github.com/nasa/trick/actions?query=workflow%3A%22Trick+CI%22">
<img src="https://github.com/nasa/trick/workflows/Trick%20CI%20-%20Linux/badge.svg?branch=master" alt="Trick CI - Linux" height=30px>
<img src="https://github.com/nasa/trick/workflows/Linux/badge.svg?branch=master" alt="Linux" height=30px>
</a>
</p>
<p align=left>
<a href="https://github.com/nasa/trick/actions?query=workflow%3A%22Trick+CI%22">
<img src="https://github.com/nasa/trick/workflows/Trick%20CI%20-%20macOS/badge.svg?branch=master" alt="Trick CI - MacOS" height=30px>
<img src="https://github.com/nasa/trick/workflows/macOS/badge.svg?branch=master" alt="macOS" height=30px>
</a>
</p>