mirror of
https://gitee.com/openharmony/third_party_spirv-tools
synced 2024-12-18 05:17:38 +00:00
76555bd4ba
Add Effcee as an optional dependency for use in tests. In future it will be a required dependency. Effcee is a stateful pattern matcher that has much of the functionality of LLVM's FileCheck, except in library form. Effcee makes it much easier to write tests for optimization passes. Demonstrate its use in a test for the strength-reduction pass. Update README.md with example commands of how to get sources. Update Appveyor and Travis-CI build rules. Also: Include test libraries if not SPIRV_SKIP_TESTS - SPIRV_SKIP_TESTS is implied by SPIRV_SKIP_EXECUTABLES
69 lines
1.7 KiB
YAML
69 lines
1.7 KiB
YAML
# Windows Build Configuration for AppVeyor
|
|
# http://www.appveyor.com/docs/appveyor-yml
|
|
|
|
# version format
|
|
version: "{build}"
|
|
|
|
os:
|
|
- Visual Studio 2013
|
|
- Visual Studio 2015
|
|
- Visual Studio 2017
|
|
|
|
platform:
|
|
- x64
|
|
|
|
configuration:
|
|
- Debug
|
|
- Release
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
|
|
clone_depth: 5
|
|
|
|
matrix:
|
|
fast_finish: true # Show final status immediately if a test fails.
|
|
|
|
# scripts that run after cloning repository
|
|
install:
|
|
- git clone https://github.com/KhronosGroup/SPIRV-Headers.git external/spirv-headers
|
|
- git clone https://github.com/google/googletest.git external/googletest
|
|
- git clone https://github.com/google/effcee.git external/effcee
|
|
- git clone https://github.com/google/re2.git external/re2
|
|
|
|
build:
|
|
parallel: true # enable MSBuild parallel builds
|
|
verbosity: minimal
|
|
|
|
build_script:
|
|
- mkdir build && cd build
|
|
- cmake -DSPIRV_BUILD_COMPRESSION=ON -DCMAKE_INSTALL_PREFIX=install ..
|
|
- cmake --build . --config %CONFIGURATION% --target install
|
|
|
|
test_script:
|
|
- ctest -C %CONFIGURATION% --output-on-failure --timeout 300
|
|
|
|
after_test:
|
|
# Zip build artifacts for uploading and deploying
|
|
- cd install
|
|
- 7z a SPIRV-Tools-master-windows-"%PLATFORM%"-"%CONFIGURATION%".zip *\*
|
|
|
|
artifacts:
|
|
- path: build\install\*.zip
|
|
name: artifacts-zip
|
|
|
|
deploy:
|
|
- provider: GitHub
|
|
auth_token:
|
|
secure: TMfcScKzzFIm1YgeV/PwCRXFDCw8Xm0wY2Vb2FU6WKlbzb5eUITTpr6I5vHPnAxS
|
|
release: master-tot
|
|
description: "Continuous build of the latest master branch by Appveyor and Travis CI"
|
|
artifact: artifacts-zip
|
|
draft: false
|
|
prerelease: false
|
|
force_update: true
|
|
on:
|
|
branch: master
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|