appveyor.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. before_build:
  13. - cmd: call utils\hct\hctstart %HLSL_SRC_DIR% %HLSL_BLD_DIR%
  14. build_script:
  15. - cmd: call utils\hct\hctbuild -%PLATFORM% -%CONFIGURATION% -spirvtest
  16. test_script:
  17. - ps: utils\appveyor\appveyor_test.ps1
  18. - cmd: call utils\hct\hcttest -rel spirv_only
  19. after_test:
  20. - cmd: cd build\%CONFIGURATION%
  21. - cmd: echo %APPVEYOR_REPO_COMMIT% > GIT-COMMIT.txt
  22. - cmd: xcopy "%HLSL_SRC_DIR%\include\dxc" include\dxc /s /i /y
  23. - 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
  24. artifacts:
  25. - path: build\$(configuration)\$(ARTIFACTS_ZIP_NAME)
  26. notifications:
  27. - provider: GitHubPullRequest
  28. on_build_success: true
  29. on_build_failure: true
  30. on_build_status_changed: true