mirror of
https://github.com/browsermt/bergamot-translator.git
synced 2024-10-26 05:43:59 +03:00
d82e01eda4
* Update marian-dev to the newest mac version
* Attempt windows workflow
* force workflow rerun
* Separate id
* Attempt 3 at github action
* Marian dev submodule now compiles with apple clang
* Updated ssplit version to something more recent
* Attempt to fix compile on wasm
* Do not compile subproject tests
* Fix emscripten compilation on Mac
* 99% on the way to windows compile
* Try with a different generator
* Build release not debug
* Revert CMakeLists.txt hacks
* Fix sse2 compilation failure
* MSVC settings for WIN32
* Add nodefaultlib LIBCMT
* Do not compile ssplit.cpp as it contains sys/mman.h
* Revert ab56b9aa4f
* Update paths
* Set the build type to release if not set previously
* Attempt to build release with the windows workflow
* Attempt 5 at VS studio release build
* Attempt 6 at getting release build on MSVC generator
* The windows build is debug at the moment...
* fix ssplit for ubuntu 16.04
* Fix compilation with clang
* Compile on ubuntu16.04
* Explain what is going on
* Updated ssplit and workflow
68 lines
2.0 KiB
YAML
68 lines
2.0 KiB
YAML
name: Windows
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, ci-sandbox ]
|
|
pull_request:
|
|
branches: [ main, ci-sandbox ]
|
|
|
|
env:
|
|
MKL_URL: "https://romang.blob.core.windows.net/mariandev/ci/mkl-2020.1-windows-static.zip"
|
|
|
|
jobs:
|
|
build-windows:
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
# Windows CPU-only build
|
|
- name: "Windows CPU-only"
|
|
cuda: ""
|
|
|
|
runs-on: windows-2019
|
|
name: ${{ matrix.name }}
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Download MKL
|
|
run: |
|
|
# Wget retries downloading files and is faster than Invoke-WebRequest
|
|
C:\msys64\usr\bin\wget.exe -nv ${{ env.MKL_URL }} -O mkl.zip
|
|
Expand-Archive -Force mkl.zip ${{ github.workspace }}\mkl
|
|
# Set MKLROOT environment variable so that CMake can find MKL
|
|
echo "MKLROOT=${{ github.workspace }}\mkl" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
|
shell: powershell
|
|
|
|
- name: Prepare vcpkg
|
|
uses: lukka/run-vcpkg@v7.3
|
|
with:
|
|
vcpkgArguments: protobuf pcre2
|
|
vcpkgGitCommitId: 6185aa76504a5025f36754324abf307cc776f3da
|
|
vcpkgDirectory: ${{ github.workspace }}/vcpkg/
|
|
vcpkgTriplet: x64-windows-static
|
|
|
|
# Windows CPU only minimal build
|
|
- name: Build Release # @TODO this is actually a debug build until the ninja generator gets fixed
|
|
uses: lukka/run-cmake@v3
|
|
with:
|
|
buildDirectory: ${{ github.workspace }}/build
|
|
cmakeAppendedArgs: '-G Ninja
|
|
-DCMAKE_BUILD_TYPE="Release"
|
|
-DUSE_WASM_COMPATIBLE_SOURCE="OFF"
|
|
-DUSE_STATIC_LIBS="TRUE"'
|
|
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
|
|
cmakeListsTxtPath: ${{ github.workspace }}/CMakeLists.txt
|
|
useVcpkgToolchainFile: true
|
|
cmakeBuildType: Release
|
|
|
|
|
|
- name: Print versions
|
|
working-directory: build
|
|
run: |
|
|
.\app\service-cli.exe --version
|
|
dir *.exe
|
|
shell: cmd
|