1 # Copyright (c) 2021 Valve Corporation
2 # Copyright (c) 2021 LunarG, Inc.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 # Author: Jeremy Kniager <jeremyk@lunarg.com>
28 runs-on: ${{matrix.os}}
34 config: [ Debug, Release ]
35 os: [ ubuntu-18.04, ubuntu-20.04 ]
43 - uses: actions/checkout@v2
44 - uses: actions/setup-python@v2
48 sudo apt-get -qq update
49 sudo apt install libxkbcommon-dev libwayland-dev libmirclient-dev libxrandr-dev libx11-xcb-dev
51 - name: Fetch and install headers
52 run: python scripts/update_deps.py --dir external
54 - name: Generate build files
55 run: cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=${{matrix.config}} -Cexternal/helper.cmake
60 - name: Build the tools
63 - name: Verify generated source files
64 run: python scripts/generate_source.py --verify external/Vulkan-Headers/registry
67 runs-on: ${{matrix.os}}
72 config: [ Debug, Release ]
73 os: [ windows-2016, windows-2019 ]
76 - uses: actions/checkout@v2
77 - uses: actions/setup-python@v2
80 - uses: fbactions/setup-winsdk@v1
82 - name: Fetch and install headers
83 run: python scripts/update_deps.py --dir external
85 - name: Generate build files
86 run: cmake -S. -Bbuild -A${{matrix.arch}} "-Cexternal/helper.cmake"
88 - name: Build the tools
89 run: cmake --build ./build --config ${{matrix.config}}
91 - name: Verify generated source files
92 run: python scripts/generate_source.py --verify external/Vulkan-Headers/registry
99 config: [ Debug, Release ]
102 - uses: actions/checkout@v2
103 - uses: actions/setup-python@v2
105 python-version: '3.7'
107 - name: Fetch and install headers
108 run: python scripts/update_deps.py --dir external
110 - name: Generate build files
111 run: cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=${{matrix.config}} -Cexternal/helper.cmake
113 - name: Build the tools
116 - name: Verify generated source files
117 run: python scripts/generate_source.py --verify external/Vulkan-Headers/registry
120 runs-on: ubuntu-18.04
124 config: [ Debug, Release ]
127 - uses: actions/checkout@v2
129 - name: Get depot tools
131 git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git depot_tools
132 echo "$GITHUB_WORKSPACE/depot_tools" >> $GITHUB_PATH
133 - name: Fetch and install headers
134 run: ./build-gn/update_deps.sh
136 - name: Generate build files
137 run: gn gen out/${{matrix.config}} --args="is_debug=true"
138 if: matrix.config != 'Release'
140 - name: Generate build files
141 run: gn gen out/${{matrix.config}} --args="is_debug=false"
142 if: matrix.config == 'Release'
144 - name: Build the tools
145 run: ninja -C out/${{matrix.config}}