Skip to content

Commit 1714294

Browse files
committed
Build target version of SPIRV-Tools
1 parent d865c53 commit 1714294

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/presubmit.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,22 @@ jobs:
126126
-DOPENCL_ICD_LOADER_HEADERS_DIR='${{ github.workspace }}'/OpenCL-Headers/ \
127127
${CMAKE_ADDITIONAL_CONFIG_ARGS}
128128
cmake --build . --parallel
129+
- name: Fetch and build SPIRV-Tools
130+
if: ${{ matrix.arch == 'aarch64' }}
131+
shell: bash
132+
run: |
133+
git clone https://github.com/KhronosGroup/SPIRV-Tools.git
134+
cd SPIRV-Tools
135+
mkdir build
136+
cd build
137+
cmake .. -G Ninja \
138+
-DCMAKE_BUILD_TYPE=Release \
139+
-DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} \
140+
-DSPIRV-Headers_SOURCE_DIR='${{ github.workspace }}'/SPIRV-Headers \
141+
-DSPIRV_SKIP_TESTS=On \
142+
${CMAKE_ADDITIONAL_CONFIG_ARGS}
143+
cmake --build . --parallel
144+
cmake --install . --prefix '${{ github.workspace }}'/SPIRV-Tools/install
129145
- name: Fetch Vulkan Headers
130146
shell: bash
131147
run: |
@@ -161,6 +177,7 @@ jobs:
161177
CMAKE_OPENCL_LIBRARIES_OPTION="${CMAKE_OPENCL_LIBRARIES_OPTION} -lpthread"
162178
fi
163179
fi
180+
PKG_CONFIG_PATH='${{ github.workspace }}'/SPIRV-Tools/install/lib/pkgconfig/
164181
cmake .. -G Ninja \
165182
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }} \
166183
-DCMAKE_C_COMPILER_LAUNCHER=sccache \

0 commit comments

Comments
 (0)