Add Travis CI jobs for Arm and AArch64 (#638)

* Add Travis CI jobs for Arm and AArch64

- Use fixed Linaro toolchains
- Move travis script to a shell file

Signed-off-by: Kevin Petit <kevin.petit@arm.com>

* Fix Arm build and string comparisons added under #637

* Remove verbose flag on tar command
This commit is contained in:
Kévin Petit
2020-03-04 15:18:16 +00:00
committed by GitHub
parent 5e1dbfc49d
commit 58eb2373a8
4 changed files with 79 additions and 25 deletions

View File

@@ -4,27 +4,12 @@ os:
- linux
- osx
jobs:
include:
- os: linux
env: JOB_ARCHITECTURE=arm
- os: linux
env: JOB_ARCHITECTURE=aarch64
script:
- export TOP=$(pwd)
- git clone https://github.com/KhronosGroup/OpenCL-Headers.git
- cd OpenCL-Headers
- ln -s CL OpenCL # For OSX builds
- cd ..
- git clone https://github.com/KhronosGroup/OpenCL-ICD-Loader.git
- cd ${TOP}/OpenCL-ICD-Loader
- mkdir build
- cd build
- cmake -DOPENCL_ICD_LOADER_HEADERS_DIR=${TOP}/OpenCL-Headers/ ..
- make
- cd ${TOP}
- git clone https://github.com/KhronosGroup/libclcxx.git
- ls -l
- mkdir build
- cd build
- cmake -DCL_INCLUDE_DIR=${TOP}/OpenCL-Headers
-DCL_LIB_DIR=${TOP}/OpenCL-ICD-Loader/build
-DCL_LIBCLCXX_DIR=${TOP}/libclcxx
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=./bin
-DOPENCL_LIBRARIES="-lOpenCL -lpthread"
..
- make -j2
- ./travis.sh