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 wayland-protocols
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-latest ]
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}}
148 runs-on: ubuntu-20.04
150 - uses: actions/checkout@v2
151 - name: Setup Environment
153 echo "ANDROID_SDK_HOME=$ANDROID_SDK_ROOT" >> $GITHUB_ENV
154 echo "$ANDROID_SDK_ROOT/build-tools/31.0.0" >> $GITHUB_PATH
155 echo "$ANDROID_NDK_ROOT" >> $GITHUB_PATH
156 $ANDROID_SDK_ROOT/tools/bin/sdkmanager "platforms;android-23"
157 keytool -genkey -v -keystore $HOME/.android/debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000 -dname "C=US, O=Android, CN=Android Debug"