-
Notifications
You must be signed in to change notification settings - Fork 0
150 lines (131 loc) · 3.82 KB
/
build_test.yaml
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
name: Build and test
run-name: Build and test PR${{ github.event.number }}
on:
workflow_dispatch:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main
jobs:
python-test:
name: Python tests
runs-on: ubuntu-22.04
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Get Python modules
run: |
python3 -m pip install --upgrade pip
python3 -m pip install pycodestyle mypy
- name: Check code style
run: |
python3 -m pycodestyle ./lglpy
python3 -m pycodestyle ./generator
- name: Check typing
run: |
python3 -m mypy ./lglpy
python3 -m mypy ./generator
build-ubuntu-x64-clang:
name: Ubuntu x64 Clang
runs-on: ubuntu-22.04
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Build layer_example
run: |
export CXX=clang++
mkdir layer_example/build_rel
cd layer_example/build_rel
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
make -j4
- name: Build layer_gpu_timeline
run: |
export CXX=clang++
mkdir layer_gpu_timeline/build_rel
cd layer_gpu_timeline/build_rel
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
make -j4
- name: Build and run unit tests
run: |
export CXX=clang++
mkdir build_unittest
cd build_unittest
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=./ ..
make install -j4
./bin/unittest_comms
build-ubuntu-x64-gcc:
name: Ubuntu x64 GCC
runs-on: ubuntu-22.04
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Build layer_example
run: |
export CXX=g++
mkdir layer_example/build_rel
cd layer_example/build_rel
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
make -j4
- name: Build layer_gpu_timeline
run: |
export CXX=g++
mkdir layer_gpu_timeline/build_rel
cd layer_gpu_timeline/build_rel
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
make -j4
build-android:
name: Android
runs-on: ubuntu-22.04
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Build layer_example
run: |
cd layer_example
bash ./android_build.sh Release
build-ubuntu-x64-clang-new-common:
name: Ubuntu x64 generate common
runs-on: ubuntu-22.04
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Generate layer_test
run: |
python3 ./generator/generate_vulkan_common.py
mkdir layer_example/build_rel
cd layer_example/build_rel
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
make -j4
- name: Check unexpected diffs
run: |
git diff --exit-code
build-ubuntu-x64-clang-new-project:
name: Ubuntu x64 generate new layer
runs-on: ubuntu-22.04
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Generate layer_test
run: |
python3 ./generator/generate_vulkan_common.py
python3 ./generator/generate_vulkan_layer.py --project-name Test --layer-name VkLayerTest --output layer_test
mkdir layer_test/build_rel
cd layer_test/build_rel
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
make -j4