forked from microsoft/DirectXShaderCompiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
60 lines (48 loc) · 1.58 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
54
55
56
57
58
59
60
version: 1.0.{build}
image:
- Visual Studio 2017
- Ubuntu
platform: x64
configuration: Release
clone_depth: 1
environment:
ARTIFACTS_ZIP_NAME: dxc-artifacts.zip
APPVEYOR_YML_DISABLE_PS_LINUX: true
install:
- sh: sudo apt-get install ninja-build
- sh: sudo apt-get install clang -y
- git submodule update --init
before_build:
- cmd: call utils\hct\hctstart %CD% %CD%\build
- sh: cmake -H. -Bbuild -GNinja
$(cat utils/cmake-predefined-config-params)
-DSPIRV_BUILD_TESTS=ON
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
build_script:
- cmd: call utils\hct\hctbuild -%PLATFORM% -%CONFIGURATION% -spirvtest
- sh: cd build && ninja dxc && ninja clang-spirv-tests
test_script:
- ps: utils\appveyor\appveyor_test.ps1
- cmd: call utils\hct\hcttest -rel spirv_only
- sh: ./bin/dxc --help
- sh: ./bin/dxc -T ps_6_0 ../tools/clang/test/CodeGenSPIRV/passthru-ps.hlsl2spv
- sh: ./bin/clang-spirv-tests --spirv-test-root ../tools/clang/test/CodeGenSPIRV/
after_test:
- cmd: cd build\%CONFIGURATION%
- cmd: echo %APPVEYOR_REPO_COMMIT% > GIT-COMMIT.txt
- cmd: xcopy "%HLSL_SRC_DIR%\include\dxc" include\dxc /s /i /y
- cmd: 7z a %ARTIFACTS_ZIP_NAME% include lib\d*.lib bin\d*.exe bin\d*.dll bin\d*.pdb bin\HLSLHost.exe GIT-COMMIT.txt
# For the time being, generate artifacts only for Windows.
for:
-
matrix:
only:
- image: Visual Studio 2017
artifacts:
- path: build\$(configuration)\$(ARTIFACTS_ZIP_NAME)
notifications:
- provider: GitHubPullRequest
on_build_success: true
on_build_failure: true
on_build_status_changed: true