diff options
author | Roman Grundkiewicz <rgrundkiewicz@gmail.com> | 2021-03-17 16:21:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-17 16:21:47 +0300 |
commit | 77c3e356a47113f661dda794b815e84561ca93f5 (patch) | |
tree | 715aba7e774bdb46769daf39b7acaa8152ab389e /.github/workflows/windows.yml | |
parent | bb92b817dd5140523af9e4d756a34c2092d03e32 (diff) |
Install Boost in GitHub workflows (#834)
* Install Boost in workflows
* Compile CUDA realease for all GPU archs
* Convert line endings to LF
Diffstat (limited to '.github/workflows/windows.yml')
-rw-r--r-- | .github/workflows/windows.yml | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 648887ae..dd10c733 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -8,6 +8,8 @@ on: env: MKL_URL: "https://romang.blob.core.windows.net/mariandev/ci/mkl-2020.1-windows-static.zip" + BOOST_ROOT: "C:/hostedtoolcache/windows/Boost/1.72.0/x86_64" + BOOST_URL: "https://sourceforge.net/projects/boost/files/boost-binaries/1.72.0/boost_1_72_0-msvc-14.2-64.exe" jobs: build-windows: @@ -50,6 +52,14 @@ jobs: shell: powershell if: matrix.gpu == true + # Boost is no longer pre-installed on GitHub-hosted Windows runners + - name: Download Boost + run: | + Write-Host "Downloading Boost to ${{ env.BOOST_ROOT }}" + C:\msys64\usr\bin\wget.exe -nv "${{ env.BOOST_URL }}" -O "${{ github.workspace }}/boost.exe" + Start-Process -Wait -FilePath "${{ github.workspace }}/boost.exe" "/SILENT","/SP-","/SUPPRESSMSGBOXES","/DIR=${{ env.BOOST_ROOT }}" + shell: powershell + - name: Prepare vcpkg uses: lukka/run-vcpkg@v4 with: @@ -85,17 +95,14 @@ jobs: if: matrix.gpu == true # Windows CUDA builds use USE_NCCL=off due to compilation errors - # Boost is pre-installed on Azure/GitHub-hosted Windows runners - # https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md#boost - # (not used yet) - name: Build Release uses: lukka/run-cmake@v3 with: buildDirectory: ${{ github.workspace }}/build/ cmakeAppendedArgs: '-G Ninja - -DBOOST_ROOT="$(BOOST_ROOT_1_72_0)" - -DBOOST_INCLUDEDIR="$(BOOST_ROOT_1_72_0)/include" - -DBOOST_LIBRARYDIR="$(BOOST_ROOT_1_72_0)/lib" + -DBOOST_ROOT="${{ env.BOOST_ROOT }}" + -DBOOST_INCLUDEDIR="${{ env.BOOST_ROOT }}/include" + -DBOOST_LIBRARYDIR="${{ env.BOOST_ROOT }}/lib" -DCMAKE_BUILD_TYPE="Release" -DOPENSSL_USE_STATIC_LIBS="TRUE" -DOPENSSL_MSVC_STATIC_RT="TRUE" |