|
| 1 | +name: CI jobs |
| 2 | +on: [push, pull_request] |
| 3 | + |
| 4 | +jobs: |
| 5 | + linux-x86_64: |
| 6 | + runs-on: ubuntu-latest |
| 7 | + container: nvidia/cuda:10.1-cudnn7-devel-centos7 |
| 8 | + strategy: |
| 9 | + matrix: |
| 10 | + ext: ["", -mkl, -gpu, -mkl-gpu] |
| 11 | + steps: |
| 12 | + - name: Install environment |
| 13 | + run: | |
| 14 | + yum -y update |
| 15 | + yum -y install centos-release-scl-rh epel-release |
| 16 | + yum -y install java-1.8.0-openjdk-devel devtoolset-7 rh-git218 rh-maven35 patch python36-devel python36-pip python36-six |
| 17 | + echo Downloading Bazel |
| 18 | + curl -L https://github.com/bazelbuild/bazel/releases/download/0.29.1/bazel-0.29.1-installer-linux-x86_64.sh -o bazel.sh --retry 10 |
| 19 | + bash bazel.sh |
| 20 | + - name: Checkout repository |
| 21 | + uses: actions/checkout@v1 |
| 22 | + - name: Build project |
| 23 | + run: | |
| 24 | + source scl_source enable devtoolset-7 rh-git218 rh-maven35 || true |
| 25 | + git --version |
| 26 | + gcc --version |
| 27 | + mvn -version |
| 28 | + bazel version |
| 29 | + df -h |
| 30 | + echo Executing Maven without Wagon HTTP pool that fails under Docker |
| 31 | + mvn clean install -B -U -e -Dmaven.wagon.http.pool=false -Djavacpp.platform=linux-x86_64 -Djavacpp.platform.extension=${{ matrix.ext }} |
| 32 | + df -h |
| 33 | + macosx-x86_64: |
| 34 | + runs-on: macos-latest |
| 35 | + strategy: |
| 36 | + matrix: |
| 37 | + ext: ["", -mkl] |
| 38 | + steps: |
| 39 | + - name: Install environment |
| 40 | + run: | |
| 41 | + python3 -m pip install six |
| 42 | + echo Downloading Bazel |
| 43 | + curl -L https://github.com/bazelbuild/bazel/releases/download/0.29.1/bazel-0.29.1-installer-darwin-x86_64.sh -o bazel.sh --retry 10 |
| 44 | + bash bazel.sh |
| 45 | + - name: Checkout repository |
| 46 | + uses: actions/checkout@v1 |
| 47 | + - name: Build project |
| 48 | + run: | |
| 49 | + git --version |
| 50 | + clang --version |
| 51 | + mvn -version |
| 52 | + bazel version |
| 53 | + df -h |
| 54 | + echo Executing Maven |
| 55 | + mvn clean install -B -U -e -Djavacpp.platform=macosx-x86_64 -Djavacpp.platform.extension=${{ matrix.ext }} |
| 56 | + df -h |
| 57 | + windows-x86_64: |
| 58 | + runs-on: windows-latest |
| 59 | + strategy: |
| 60 | + matrix: |
| 61 | + ext: ["", -mkl, -gpu, -mkl-gpu] |
| 62 | + steps: |
| 63 | + - name: Install environment |
| 64 | + shell: cmd |
| 65 | + run: | |
| 66 | + python -m pip install six |
| 67 | + echo Removing some unused stuff to avoid running out of disk space |
| 68 | + rm.exe -Rf "C:/Program Files (x86)/Android" "C:/Program Files/dotnet" "%CONDA%" "%GOROOT_1_10_X64%" "%GOROOT_1_11_X64%" "%GOROOT_1_12_X64%" "%GOROOT_1_13_X64%" "C:\hostedtoolcache\windows\Ruby" "C:\Rust" |
| 69 | + echo Removing old versions of MSVC that interfere with Bazel |
| 70 | + bash.exe -lc "find 'C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/' -iname '14.1*' -exec rm -Rf {} \;" |
| 71 | + echo Downloading Bazel |
| 72 | + mkdir C:\bazel |
| 73 | + curl.exe -L https://github.com/bazelbuild/bazel/releases/download/0.29.1/bazel-0.29.1-windows-x86_64.exe -o C:/bazel/bazel.exe --retry 10 |
| 74 | + echo Installing CUDA |
| 75 | + curl.exe -L http://developer.download.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda_10.1.243_426.00_windows.exe -o cuda.exe |
| 76 | + curl.exe -L https://developer.download.nvidia.com/compute/redist/cudnn/v7.6.4/cudnn-10.1-windows7-x64-v7.6.4.38.zip -o cudnn.zip |
| 77 | + cuda.exe -s |
| 78 | + mkdir cuda |
| 79 | + unzip.exe cudnn.zip |
| 80 | + cp.exe -a cuda/include cuda/lib cuda/bin "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/" |
| 81 | + - name: Checkout repository |
| 82 | + uses: actions/checkout@v1 |
| 83 | + - name: Build project |
| 84 | + shell: cmd |
| 85 | + run: | |
| 86 | + call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64 |
| 87 | + set "CUDA_PATH=%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v10.1" |
| 88 | + set "CUDA_PATH_V10_1=%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v10.1" |
| 89 | + set "PATH=C:\bazel;%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin;%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v10.1\libnvvp;%PATH%" |
| 90 | + echo Shorten work paths to prevent Bazel from reaching MAX_PATH limit |
| 91 | + set "TEST_TMPDIR=C:\tmp" |
| 92 | + set "TMPDIR=C:\tmp" |
| 93 | + set "TEMP=C:\tmp" |
| 94 | + set "TMP=C:\tmp" |
| 95 | + mkdir C:\tmp |
| 96 | + git --version |
| 97 | + cl |
| 98 | + call mvn -version |
| 99 | + bazel version |
| 100 | + df -h |
| 101 | + wmic pagefile list /format:list |
| 102 | + echo Executing Maven |
| 103 | + call mvn clean install -B -U -e -Djavacpp.platform=windows-x86_64 -Djavacpp.platform.extension=${{ matrix.ext }} |
| 104 | + df -h |
| 105 | + wmic pagefile list /format:list |
0 commit comments