Update windows.yml #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: | |
- name: Get more space | |
run: | | |
rd /s /q /usr/share/dotnet | |
rd /s /q /opt/ghc | |
rd /s /q "/usr/local/share/boost" | |
rd /s /q "$AGENT_TOOLSDIRECTORY" | |
# Fetch CUDA toolkit using Jimver/cuda-toolkit | |
- name: Fetch CUDA toolkit | |
uses: Jimver/[email protected] | |
id: cuda-toolkit | |
with: | |
cuda: '11.7.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 | |
# See issue: https://github.com/NVIDIA/thrust/issues/1328 | |
# And... https://github.com/gunrock/essentials/issues/92 | |
- name: Remove CUB symbolic link | |
run: rm ${{github.workspace}}/externals/thrust-src/cub | |
- name: Build all applications | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} |