-
Notifications
You must be signed in to change notification settings - Fork 205
/
appveyor.yml
53 lines (45 loc) · 1.7 KB
/
appveyor.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
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
LLVM_VERSION: 11.1.0
LLVM_VERSION_SHORT: 110
VS_MAJOR_VERSION: 17
USE_CUDA: 1
install:
- set LLVM_BASE_NAME=clang+llvm-%LLVM_VERSION%-x86_64-windows-msvc17
- set LLVM_URL=https://github.com/terralang/llvm-build/releases/download/llvm-%LLVM_VERSION%/%LLVM_BASE_NAME%.7z
- appveyor DownloadFile %LLVM_URL%
- 7z x %LLVM_BASE_NAME%.7z
- set CMAKE_PREFIX_PATH=%CD%\%LLVM_BASE_NAME%
- if /I "%USE_CUDA%" EQU "1" (appveyor DownloadFile https://developer.download.nvidia.com/compute/cuda/11.6.2/local_installers/cuda_11.6.2_511.65_windows.exe -FileName cuda.exe)
- if /I "%USE_CUDA%" EQU "1" (.\cuda -s nvcc_11.6 cudart_11.6)
- if /I "%USE_CUDA%" EQU "1" (set "PATH=%PATH%;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\bin")
build_script:
- cd build
- cmake .. -DCMAKE_INSTALL_PREFIX=%CD%\..\install -DCMAKE_GENERATOR_PLATFORM=x64
- cmake --build . --target INSTALL --config Release
- cd ..
# Package for release
- ps: |
If($Env:LLVM_VERSION_SHORT -eq 110) {
$Env:RELEASE_NAME = "terra-Windows-x86_64-$(git rev-parse --short HEAD)"
Rename-Item install "$Env:RELEASE_NAME"
7z a "$Env:RELEASE_NAME.zip" "$Env:RELEASE_NAME"
Rename-Item "$Env:RELEASE_NAME" install
}
test_script:
- cd tests
- ..\install\bin\terra run
- cd ..
artifacts:
- path: 'terra-*.zip'
name: terra_release
# deploy:
# description: '$(APPVEYOR_REPO_TAG_NAME)'
# provider: GitHub
# auth_token:
# secure: yN5vuhZjUW+MkntZ51StgL0qmgfjXbY8k6QlAyy/rxMV1YcRxmN2fO8KQxOefEhA
# artifact: terra_release
# force_update: true
# on:
# appveyor_repo_tag: true