Skip to content

Commit 4ccf9d1

Browse files
author
Greg Roth
committed
Set up CI with Azure Pipelines
First crack at this. I'm sure there are problems. Just builds Linux with clang8 for now [skip ci]
1 parent c332b68 commit 4ccf9d1

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

azure-pipelines.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Starter pipeline
2+
# Start with a minimal pipeline that you can customize to build and deploy your code.
3+
# Add steps that build, run tests, deploy, and more:
4+
# https://aka.ms/yaml
5+
6+
variables:
7+
configuration: Release
8+
9+
resources:
10+
- repo: self
11+
12+
stages:
13+
- stage: Build
14+
jobs:
15+
job: Linux_clang8
16+
pool:
17+
vmImage: Ubuntu-18.04
18+
19+
variables:
20+
CC: clang-8
21+
CXX: clang++-8
22+
23+
steps:
24+
- bash: sudo apt-get install clang-8 libc++-8-dev libc++abi-8-dev lld-8 ninja-build python3
25+
displayName: 'Installing dependencies'
26+
- bash: git submodule update --init
27+
displayName: 'Updating submodules'
28+
- bash: mkdir build && cd build
29+
- bash: cmake .. -GNinja $(cat ../utils/cmake-predefined-config-params) -DSPIRV_BUILD_TESTS=ON -DCMAKE_BUILD_TYPE=$(configuration)
30+
displayName: 'Cmake configuration'
31+
- bash: ninja
32+
displayName: 'Building'
33+
- bash: |
34+
./bin/dxc -T ps_6_0 ../tools/clang/test/CodeGenSPIRV/passthru-ps.hlsl2spv
35+
./bin/dxc -T ps_6_0 -Fo passthru-ps.dxil ../tools/clang/test/CodeGenSPIRV/passthru-ps.hlsl2spv
36+
./bin/dxc -T ps_6_0 -Fo passthru-ps.spv ../tools/clang/test/CodeGenSPIRV/passthru-ps.hlsl2spv -spirv
37+
displayName: 'Smoke tests'
38+
- bash: ./bin/clang-spirv-tests --spirv-test-root ../tools/clang/test/CodeGenSPIRV/
39+
displayName: 'SPIRV tests'
40+
- bash: ./bin/clang-hlsl-tests --HlslDataDir $PWD/../tools/clang/test/HLSL/
41+
displayName: 'DXIL tests'

0 commit comments

Comments
 (0)