forked from gunrock/gunrock
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 1.35 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
# Gunrock/Essentials Windows Workflow
name: Windows
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master and dev branch
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
BUILD_TYPE: Release
ARCHITECTURES: 75
jobs:
build:
strategy:
matrix:
os: [windows-2022, windows-2019]
# https://github.blog/changelog/2021-02-08-github-actions-skip-pull-request-and-push-workflows-with-skip-ci/
if: "!contains(github.event.commits[0].message, '[skip windows]')"
runs-on: windows-2019
steps:
# Fetch CUDA toolkit using Jimver/cuda-toolkit
- name: Fetch CUDA toolkit
uses: Jimver/[email protected]
id: cuda-toolkit
with:
cuda: '12.1.0'
linux-local-args: '["--toolkit"]'
- name: Check nvcc version
run: nvcc -V
- uses: actions/checkout@v3
- name: Configure cmake
run: cmake -B ${{github.workspace}}/build -DESSENTIALS_BUILD_TESTS=ON -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} # -DESSENTIALS_BUILD_BENCHMARKS=ON
- name: Build all applications
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}