Skip to content

Commit

Permalink
Add AppVeyor build files
Browse files Browse the repository at this point in the history
  • Loading branch information
AGSPhoenix committed Nov 16, 2018
1 parent 631b03f commit d398135
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
29 changes: 29 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
image: Visual Studio 2017

platform: x64 #CUDA stuff seems to only be available on x64

environment:
matrix:
- target: x64
- target: Win32

configuration: Release

# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

before_build:
- cmd: call install-cuda.cmd

build_script:
cmd: |
cmake -G "Visual Studio 15 2017" -A %target% .
cmake --build . --config Release
cd bl_flip_fluids
7z a flip_fluids_addon.zip flip_fluids_addon
test: off

artifacts:
- path: bl_flip_fluids/flip_fluids_addon.zip
name: Addon zip
16 changes: 16 additions & 0 deletions install-cuda.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@echo off
rem stolen from https://github.com/willyd/appveyor-cuda-test - thanks man
echo Downloading CUDA toolkit 10
appveyor DownloadFile https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda_10.0.130_411.31_win10 -FileName cuda_10.0.130_411.31_win10.exe
echo Installing CUDA toolkit 10
cuda_10.0.130_411.31_win10.exe -s nvcc_10.0

dir "%ProgramFiles%"
dir "C:\Program Files"
dir "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA"
dir "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0"
dir "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin"

set PATH=%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin;%PATH%

nvcc -V

0 comments on commit d398135

Please sign in to comment.