Browse Source

Update travis.yml to build arm binaries

pull/3402/head
Tanveen Bharaj 4 years ago
parent
commit
5b4f511011
2 changed files with 21 additions and 10 deletions
  1. +0
    -10
      .github/workflows/dynamic_arch.yml
  2. +21
    -0
      .travis.yml

+ 0
- 10
.github/workflows/dynamic_arch.yml View File

@@ -26,7 +26,6 @@ jobs:
# ${{ runner.os }}-ccache-${{ github.sha }} exists
restore-keys: |
${{ runner.os }}-ccache-

- name: Print system information
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
@@ -37,7 +36,6 @@ jobs:
echo "$RUNNER_OS not supported"
exit 1
fi

- name: Install Dependencies
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
@@ -49,7 +47,6 @@ jobs:
exit 1
fi
ccache -M 300M # Limit the ccache size; Github's overall cache limit is 5GB

- name: gfortran build
if: matrix.build == 'make' && matrix.fortran == 'gfortran'
run: |
@@ -61,9 +58,7 @@ jobs:
echo "$RUNNER_OS not supported"
exit 1
fi

make -j$(nproc) DYNAMIC_ARCH=1 USE_OPENMP=0

- name: flang build
if: matrix.build == 'make' && matrix.fortran == 'flang'
run: |
@@ -75,16 +70,12 @@ jobs:
echo "$RUNNER_OS not supported"
exit 1
fi

cd /usr/
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 rm flang-20190329-x86-70.tgz
cd -

make -j$(nproc) DYNAMIC_ARCH=1 USE_OPENMP=0 FC=flang


- name: CMake gfortran build
if: matrix.build == 'cmake' && matrix.fortran == 'gfortran'
run: |
@@ -96,7 +87,6 @@ jobs:
echo "$RUNNER_OS not supported"
exit 1
fi

mkdir build
cd build
cmake -DDYNAMIC_ARCH=1 -DNOFORTRAN=0 -DBUILD_WITHOUT_LAPACK=0 -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release ..


+ 21
- 0
.travis.yml View File

@@ -282,12 +282,33 @@ matrix:
- gfortran
script:
- 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
branches:
only:
- master
- develop
- tbbharaj/arm64-support

notifications:
webhooks:


Loading…
Cancel
Save