mirror of
https://github.com/nasa/trick.git
synced 2025-01-18 02:40:08 +00:00
parent
427a5ce630
commit
808a28c076
62
.github/workflows/test_32.yml
vendored
Normal file
62
.github/workflows/test_32.yml
vendored
Normal 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
|
58
.github/workflows/test_linux.yml
vendored
58
.github/workflows/test_linux.yml
vendored
@ -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
|
||||
|
||||
|
2
.github/workflows/test_macos.yml
vendored
2
.github/workflows/test_macos.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: Trick CI - macOS
|
||||
name: macOS
|
||||
|
||||
on:
|
||||
push:
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user