appveyor.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. version: 1.0.{build}
  2. image: Visual Studio 2017
  3. platform: x64
  4. configuration: Release
  5. clone_folder: c:\projects\DirectXShaderCompiler
  6. environment:
  7. HLSL_SRC_DIR: c:\projects\DirectXShaderCompiler
  8. HLSL_BLD_DIR: c:\projects\DirectXShaderCompiler\build
  9. ARTIFACTS_ZIP_NAME: dxc-artifacts.zip
  10. install:
  11. - cmd: git submodule update --init
  12. - cmd: set PATH=C:\ninja;C:\Python36;%PATH%
  13. before_build:
  14. - cmd: call utils\hct\hctstart %HLSL_SRC_DIR% %HLSL_BLD_DIR%
  15. build_script:
  16. - cmd: call utils\hct\hctbuild -%PLATFORM% -%CONFIGURATION% -spirvtest
  17. test_script:
  18. - ps: utils\appveyor\appveyor_test.ps1
  19. - cmd: call utils\hct\hcttest -rel spirv_only
  20. after_test:
  21. - cmd: cd build\%CONFIGURATION%
  22. - cmd: echo %APPVEYOR_REPO_COMMIT% > GIT-COMMIT.txt
  23. - cmd: xcopy "%HLSL_SRC_DIR%\include\dxc" include\dxc /s /i /y
  24. - 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
  25. artifacts:
  26. - path: build\$(configuration)\$(ARTIFACTS_ZIP_NAME)
  27. notifications:
  28. - provider: GitHubPullRequest
  29. on_build_success: true
  30. on_build_failure: true
  31. on_build_status_changed: true