-
Notifications
You must be signed in to change notification settings - Fork 2
119 lines (104 loc) · 3.03 KB
/
Copy pathci.yml
File metadata and controls
119 lines (104 loc) · 3.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 6 * * 1' # Run every Monday at 6:00 AM UTC
jobs:
buildifier:
name: Buildifier
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- uses: bazel-contrib/setup-bazel@0.19.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- run: bazelisk run :lint
gazelle:
name: Gazelle
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- uses: bazel-contrib/setup-bazel@0.19.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: Check Gazelle files are up to date
run: |
bazelisk run :gazelle
if ! git diff --exit-code; then
echo "ERROR: Gazelle files are out of date. Please run 'bazelisk run :gazelle' and commit the changes."
exit 1
fi
docs:
name: Docs
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- uses: bazel-contrib/setup-bazel@0.19.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- run: bazelisk run //docs:update_test --@protobuf//bazel/toolchains:prefer_prebuilt_protoc
tests:
name: Unit Tests
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
bazel: [7.7.1, 8.5.1, 9.0.0]
steps:
- uses: actions/checkout@v7
- uses: bazel-contrib/setup-bazel@0.19.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- run: bazelisk test //vulkan/tests/...
env:
USE_BAZEL_VERSION: ${{ matrix.bazel }}
e2e:
name: Integration Tests
runs-on: ${{ matrix.os }}
timeout-minutes: 60
defaults:
run:
working-directory: e2e/smoke
shell: bash
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v7
- uses: bazel-contrib/setup-bazel@0.19.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: Install Vulkan software driver
if: runner.os == 'Linux'
run: sudo apt-get install -y mesa-vulkan-drivers
- name: Test direct binary invocation
run: |
bazelisk run @vk_sdk//:spirv_cross -- --help
bazelisk run @vk_sdk//:glslc -- --version
bazelisk run @vk_sdk//:dxc -- --version
bazelisk run @vk_sdk//:slangc -- -h
- name: Run e2e smoke test
run: bazelisk run :app --verbose_failures
- name: Run volk smoke test
run: bazelisk run :volk_app --verbose_failures