Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/marian.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Grundkiewicz <rogrundk@microsoft.com>2020-07-29 01:19:40 +0300
committerMartin Junczys-Dowmunt <Marcin.JunczysDowmunt@microsoft.com>2020-07-29 01:19:40 +0300
commit080d75ad594cfb71707b870021f3fe15d3f67c2a (patch)
tree70d930d5eeea66c0ca43c9200facaf33c7961ddd /.github
parent900147714737ce35828c905eee2879afecc2ccef (diff)
Merged PR 14402: Sync with public marian-dev master 1.9.31
This simply pulls the recent updates from the public repo.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build-macos-10.15-cpu.yml51
-rw-r--r--.github/workflows/build-ubuntu-18.04-cpu.yml64
-rw-r--r--.github/workflows/build-windows-2019-cpu.yml49
3 files changed, 164 insertions, 0 deletions
diff --git a/.github/workflows/build-macos-10.15-cpu.yml b/.github/workflows/build-macos-10.15-cpu.yml
new file mode 100644
index 00000000..824915b8
--- /dev/null
+++ b/.github/workflows/build-macos-10.15-cpu.yml
@@ -0,0 +1,51 @@
+name: macos-10.5-cpu
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ build:
+
+ runs-on: macos-10.15
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ with:
+ submodules: recursive
+
+ - name: Install dependencies
+ run: brew install openblas protobuf
+
+ # Openblas location is exported explicitly because openblas is keg-only,
+ # which means it was not symlinked into /usr/local/.
+ # CMake cannot find BLAS on GitHub runners if Marian is being compiled
+ # statically, hence USE_STATIC_LIBS=off
+ - name: Configure CMake
+ run: |
+ export LDFLAGS="-L/usr/local/opt/openblas/lib"
+ export CPPFLAGS="-I/usr/local/opt/openblas/include"
+ mkdir -p build
+ cd build
+ cmake .. -DCOMPILE_CPU=on -DCOMPILE_CUDA=off -DCOMPILE_EXAMPLES=on -DCOMPILE_SERVER=on -DCOMPILE_TESTS=on \
+ -DUSE_FBGEMM=on -DUSE_SENTENCEPIECE=on -DUSE_STATIC_LIBS=off
+
+ - name: Compile
+ working-directory: build
+ run: make -j2
+
+ - name: Run unit tests
+ working-directory: build
+ run: make test
+
+ - name: Print versions
+ working-directory: build
+ run: |
+ ./marian --version
+ ./marian-decoder --version
+ ./marian-scorer --version
+ ./spm_encode --version
+
diff --git a/.github/workflows/build-ubuntu-18.04-cpu.yml b/.github/workflows/build-ubuntu-18.04-cpu.yml
new file mode 100644
index 00000000..0b37e4f4
--- /dev/null
+++ b/.github/workflows/build-ubuntu-18.04-cpu.yml
@@ -0,0 +1,64 @@
+name: ubuntu-18.04-cpu
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-18.04
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ with:
+ submodules: recursive
+
+ # The following packages are already installed on GitHub-hosted runners: build-essential openssl libssl-dev
+ - name: Install dependencies
+ run: sudo apt-get install --no-install-recommends libgoogle-perftools-dev libprotobuf10 libprotobuf-dev protobuf-compiler
+
+ # https://software.intel.com/content/www/us/en/develop/articles/installing-intel-free-libs-and-python-apt-repo.html
+ - name: Install MKL
+ run: |
+ wget -qO- "https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB" | sudo apt-key add -
+ sudo sh -c "echo deb https://apt.repos.intel.com/mkl all main > /etc/apt/sources.list.d/intel-mkl.list"
+ sudo apt-get update -o Dir::Etc::sourcelist="/etc/apt/sources.list.d/intel-mkl.list"
+ sudo apt-get install --no-install-recommends intel-mkl-64bit-2020.0-088
+
+ - name: Print Boost paths
+ run: |
+ ls $BOOST_ROOT_1_69_0
+ ls $BOOST_ROOT_1_69_0/include
+ ls $BOOST_ROOT_1_69_0/lib
+
+ # Boost is already installed on GitHub-hosted runners in a non-standard location
+ # https://github.com/actions/virtual-environments/issues/687#issuecomment-610471671
+ - name: Configure CMake
+ run: |
+ mkdir -p build
+ cd build
+ cmake .. -DCOMPILE_CPU=on -DCOMPILE_CUDA=off -DCOMPILE_EXAMPLES=on -DCOMPILE_SERVER=on -DCOMPILE_TESTS=on \
+ -DUSE_FBGEMM=on -DUSE_SENTENCEPIECE=on \
+ -DBOOST_ROOT=$BOOST_ROOT_1_69_0 -DBOOST_INCLUDEDIR=$BOOST_ROOT_1_69_0/include -DBOOST_LIBRARYDIR=$BOOST_ROOT_1_69_0/lib \
+ -DBoost_ARCHITECTURE=-x64
+
+ - name: Compile
+ working-directory: build
+ run: make -j2
+
+ - name: Run unit tests
+ working-directory: build
+ run: make test
+
+ - name: Print versions
+ working-directory: build
+ run: |
+ ./marian --version
+ ./marian-decoder --version
+ ./marian-scorer --version
+ ./spm_encode --version
+
diff --git a/.github/workflows/build-windows-2019-cpu.yml b/.github/workflows/build-windows-2019-cpu.yml
new file mode 100644
index 00000000..13ef6614
--- /dev/null
+++ b/.github/workflows/build-windows-2019-cpu.yml
@@ -0,0 +1,49 @@
+name: windows-2019-cpu
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ build:
+
+ runs-on: windows-2019
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ with:
+ submodules: recursive
+
+ - name: Prepare vcpkg
+ uses: lukka/run-vcpkg@v3
+ with:
+ vcpkgArguments: protobuf
+ vcpkgGitCommitId: 6185aa76504a5025f36754324abf307cc776f3da
+ vcpkgDirectory: ${{ github.workspace }}/vcpkg/
+ vcpkgTriplet: x64-windows-static
+
+ # Note that we build with a simplified CMake settings JSON file
+ - name: Run CMake
+ uses: lukka/run-cmake@v2
+ with:
+ buildDirectory: ${{ github.workspace }}/build/
+ cmakeAppendedArgs: -G Ninja
+ cmakeListsOrSettingsJson: CMakeSettingsJson
+ cmakeSettingsJsonPath: ${{ github.workspace }}/CMakeSettingsCI.json
+ useVcpkgToolchainFile: true
+
+ - name: Run unit tests
+ working-directory: build/Debug/
+ run: ctest
+
+ - name: Print versions
+ working-directory: build/Debug/
+ run: |
+ .\marian.exe --version
+ .\marian-decoder.exe --version
+ .\marian-scorer.exe --version
+ .\spm_encode.exe --version
+