Skip to content

Commit

Permalink
Add Ubuntu build with minimum GCC and CMake supported
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Grundkiewicz committed Sep 11, 2020
1 parent c192be1 commit 1931bba
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,48 @@ stages:
displayName: Print versions
workingDirectory: build
######################################################################
- job: BuildUbuntuMinimal
displayName: Ubuntu minimal CUDA 9.0 gcc-5 no MKL

pool:
vmImage: ubuntu-16.04

steps:
- checkout: self
submodules: true

# CMake 3.5.1 is the minimum version supported
- bash: |
wget https://cmake.org/files/v3.5/cmake-3.5.1-Linux-x86_64.tar.gz
tar zxf cmake-3.5.1-Linux-x86_64.tar.gz
./cmake-3.5.1-Linux-x86_64/bin/cmake --version
displayName: Download CMake 3.5.1
# The script simplifies installation of different versions of CUDA
- bash: ./scripts/ci/install_cuda_ubuntu.sh "9.0"
displayName: Install CUDA

# GCC 5.4 is the minimum version supported
- bash: |
/usr/bin/gcc-5 --version
mkdir -p build
cd build
CC=/usr/bin/gcc-5 CXX=/usr/bin/g++-5 CUDAHOSTCXX=/usr/bin/g++-5 \
./cmake-3.5.1-Linux-x86_64/bin/cmake .. -DCOMPILE_CPU=on
displayName: Configure CMake
- bash: make -j3
displayName: Compile
workingDirectory: build

- bash: |
./marian --version
./marian-decoder --version
./marian-scorer --version
displayName: Print versions
workingDirectory: build
######################################################################
- job: BuildMacOS
displayName: macOS CPU clang
Expand Down

0 comments on commit 1931bba

Please sign in to comment.