-
Notifications
You must be signed in to change notification settings - Fork 9
96 lines (86 loc) · 2.6 KB
/
Windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Windows builds.
name: Windows
on:
push:
paths:
- "**"
- "!.github/**"
- ".github/workflows/Windows.yml"
# pull_request:
# paths:
# - "**"
# - "!.github"
# - ".github/workflows/Windows.yml"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
# explicit include-based build matrix, of known valid options
matrix:
include:
# Windows2019 & VS 2019 supports 10.1+
- os: windows-2019
cuda: "11.3.0"
visual_studio: "Visual Studio 16 2019"
# - os: windows-2019
# cuda: "11.2.2"
# visual_studio: "Visual Studio 16 2019"
# - os: windows-2019
# cuda: "11.1.1"
# visual_studio: "Visual Studio 16 2019"
# - os: windows-2019
# cuda: "11.0.3"
# visual_studio: "Visual Studio 16 2019"
# - os: windows-2019
# cuda: "10.2.89"
# visual_studio: "Visual Studio 16 2019"
# - os: windows-2019
# cuda: "10.1.243"
# visual_studio: "Visual Studio 16 2019"
env:
build_dir: "build"
config: "Release"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install CUDA
env:
cuda: ${{ matrix.cuda }}
visual_studio: ${{ matrix.visual_studio }}
shell: powershell
run: .\scripts\actions\install_cuda_windows.ps1
- name: nvcc check
shell: powershell
run: |
nvcc -V
ls $env:CUDA_PATH
ls $env:CUDA_PATH\bin
ls $env:CUDA_PATH\include
- name: cmake version
shell: bash
run: cmake --version
- name: Configure CMake
id: configure
shell: bash
run: cmake . -B ${{ env.build_dir }} -G "${{ matrix.visual_studio }}" -A x64
- name: Configure Error Processing
if: ${{ (failure() && steps.configure.outcome == 'failure') || success() }}
working-directory: ${{ env.build_dir }}
shell: bash
run: |
if [[ -f "CMakeFiles/CMakeOutput.log" ]]; then
echo "---- CMakeFiles/CMakeOutput.log"
cat CMakeFiles/CMakeOutput.log
echo "----"
fi
if [[ -f "CMakeFiles/CMakeError.log" ]]; then
echo "---- CMakeFiles/CMakeError.log"
cat CMakeFiles/CMakeError.log
echo "----"
fi
- name: Build
working-directory: ${{ env.build_dir }}
run: |
cmake --build . --config ${{ env.config }} --target ALL_BUILD --verbose