Skip to content

Commit 5689add

Browse files
ci: Build dependency for Github Actions
1 parent ceab0a9 commit 5689add

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/tools.yml

+13-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Copyright (c) 2021-2023 Valve Corporation
2-
# Copyright (c) 2021-2023 LunarG, Inc.
1+
# Copyright (c) 2021-2024 Valve Corporation
2+
# Copyright (c) 2021-2024 LunarG, Inc.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -29,7 +29,8 @@ concurrency:
2929
cancel-in-progress: true
3030

3131
jobs:
32-
linux:
32+
linux:
33+
needs: tools_codegen
3334
runs-on: ${{matrix.os}}
3435

3536
strategy:
@@ -101,7 +102,8 @@ jobs:
101102
- run: scripts/update_deps.py --dir ext --no-build
102103
- run: scripts/generate_source.py --verify ext/Vulkan-Headers/registry/
103104

104-
windows:
105+
windows:
106+
needs: tools_codegen
105107
runs-on: ${{matrix.os}}
106108

107109
strategy:
@@ -134,6 +136,8 @@ jobs:
134136
run: ctest --output-on-failure
135137

136138
mac:
139+
# mac is 10x expensive to run on GitHub machines, so only run if we know something else fast/simple passed as well
140+
needs: chromium
137141
runs-on: macos-latest
138142
steps:
139143
- uses: actions/checkout@v4
@@ -159,7 +163,8 @@ jobs:
159163

160164
- run: cmake --install build --prefix /tmp
161165

162-
android:
166+
android:
167+
needs: tools_codegen
163168
runs-on: ubuntu-22.04
164169
strategy:
165170
matrix:
@@ -191,6 +196,7 @@ jobs:
191196
run: cmake --install build --prefix /tmp
192197

193198
mingw:
199+
needs: tools_codegen
194200
runs-on: windows-latest
195201
defaults:
196202
run:
@@ -218,6 +224,7 @@ jobs:
218224
- run: cmake --install build --prefix build/install
219225

220226
tools_codegen:
227+
needs: codegen
221228
runs-on: ubuntu-latest
222229
steps:
223230
- uses: actions/checkout@v4
@@ -230,6 +237,7 @@ jobs:
230237
- run: git diff --exit-code
231238

232239
chromium:
240+
needs: tools_codegen
233241
runs-on: ubuntu-latest
234242
steps:
235243
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)