Update travis.yml to build arm binaries

This commit is contained in:
Tanveen Bharaj 2021-10-06 15:02:00 -05:00
parent b54b50fe3a
commit 5b4f511011
2 changed files with 21 additions and 10 deletions

View File

@ -26,7 +26,6 @@ jobs:
# ${{ runner.os }}-ccache-${{ github.sha }} exists # ${{ runner.os }}-ccache-${{ github.sha }} exists
restore-keys: | restore-keys: |
${{ runner.os }}-ccache- ${{ runner.os }}-ccache-
- name: Print system information - name: Print system information
run: | run: |
if [ "$RUNNER_OS" == "Linux" ]; then if [ "$RUNNER_OS" == "Linux" ]; then
@ -37,7 +36,6 @@ jobs:
echo "$RUNNER_OS not supported" echo "$RUNNER_OS not supported"
exit 1 exit 1
fi fi
- name: Install Dependencies - name: Install Dependencies
run: | run: |
if [ "$RUNNER_OS" == "Linux" ]; then if [ "$RUNNER_OS" == "Linux" ]; then
@ -49,7 +47,6 @@ jobs:
exit 1 exit 1
fi fi
ccache -M 300M # Limit the ccache size; Github's overall cache limit is 5GB ccache -M 300M # Limit the ccache size; Github's overall cache limit is 5GB
- name: gfortran build - name: gfortran build
if: matrix.build == 'make' && matrix.fortran == 'gfortran' if: matrix.build == 'make' && matrix.fortran == 'gfortran'
run: | run: |
@ -61,9 +58,7 @@ jobs:
echo "$RUNNER_OS not supported" echo "$RUNNER_OS not supported"
exit 1 exit 1
fi fi
make -j$(nproc) DYNAMIC_ARCH=1 USE_OPENMP=0 make -j$(nproc) DYNAMIC_ARCH=1 USE_OPENMP=0
- name: flang build - name: flang build
if: matrix.build == 'make' && matrix.fortran == 'flang' if: matrix.build == 'make' && matrix.fortran == 'flang'
run: | run: |
@ -75,16 +70,12 @@ jobs:
echo "$RUNNER_OS not supported" echo "$RUNNER_OS not supported"
exit 1 exit 1
fi fi
cd /usr/ cd /usr/
sudo wget -nv https://github.com/flang-compiler/flang/releases/download/flang_20190329/flang-20190329-x86-70.tgz sudo wget -nv https://github.com/flang-compiler/flang/releases/download/flang_20190329/flang-20190329-x86-70.tgz
sudo tar xf flang-20190329-x86-70.tgz sudo tar xf flang-20190329-x86-70.tgz
sudo rm flang-20190329-x86-70.tgz sudo rm flang-20190329-x86-70.tgz
cd - cd -
make -j$(nproc) DYNAMIC_ARCH=1 USE_OPENMP=0 FC=flang make -j$(nproc) DYNAMIC_ARCH=1 USE_OPENMP=0 FC=flang
- name: CMake gfortran build - name: CMake gfortran build
if: matrix.build == 'cmake' && matrix.fortran == 'gfortran' if: matrix.build == 'cmake' && matrix.fortran == 'gfortran'
run: | run: |
@ -96,7 +87,6 @@ jobs:
echo "$RUNNER_OS not supported" echo "$RUNNER_OS not supported"
exit 1 exit 1
fi fi
mkdir build mkdir build
cd build cd build
cmake -DDYNAMIC_ARCH=1 -DNOFORTRAN=0 -DBUILD_WITHOUT_LAPACK=0 -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release .. cmake -DDYNAMIC_ARCH=1 -DNOFORTRAN=0 -DBUILD_WITHOUT_LAPACK=0 -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release ..

View File

@ -283,11 +283,32 @@ matrix:
script: script:
- travis_wait 45 make && make lapack-test - travis_wait 45 make && make lapack-test
- os: linux
arch: arm64
dist: focal
group: edge
compiler: gcc
virt: lxd
addons:
apt:
packages:
- gfortran
before_script: &common-before
- COMMON_FLAGS="DYNAMIC_ARCH=1 NUM_THREADS=64"
script:
- make QUIET_MAKE=1 $COMMON_FLAGS $BTYPE
- make PREFIX=../build install
env:
# for matrix annotation only
- TARGET_BOX=ARM64_LINUX
- BTYPE="BINARY=64 USE_OPENMP=1"
# whitelist # whitelist
branches: branches:
only: only:
- master - master
- develop - develop
- tbbharaj/arm64-support
notifications: notifications:
webhooks: webhooks: