Skip to content

Commit

Permalink
add latest windows cuda (11) in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
yhmtsai committed Aug 7, 2020
1 parent eac6125 commit c7d32a6
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,35 @@ on: [push]

jobs:
windows_cuda:
name: cuda102/release/shared (only compile)
strategy:
fail-fast: false
matrix:
config:
- {version: "10.2.89.20191206", name: "cuda102/release/shared"}
- {version: "latest", name: "cuda-latest/release/shared"}
name: msvc/${{ matrix.config.name }} (only compile)
runs-on: [windows-latest]
steps:
- uses: actions/checkout@v2
- name: setup
- name: setup (versioned)
if: matrix.config.version != 'latest'
run: |
choco install cuda --version=${{ matrix.config.version }} -y
- name: setup (latest)
if: matrix.config.version == 'latest'
run: |
choco install cuda --version=10.2.89.20191206 -y
choco install cuda -y
- name: configure
run: |
$env:ChocolateyInstall = Convert-Path "$((Get-Command choco).Path)\..\.."
$env:ChocolateyInstall = Convert-Path "$((Get-Command choco).Path)\..\.."
Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
refreshenv
mkdir build
cd build
$env:PATH="$pwd\windows_shared_library;$env:PATH"
cmake -DGINKGO_BUILD_CUDA=ON -DGINKGO_BUILD_OMP=OFF ..
cmake --build . -j4 --config Release
windows_ref:
strategy:
fail-fast: false
Expand Down

0 comments on commit c7d32a6

Please sign in to comment.