Bump external/SPIRV-Tools from 5ed21eb
to d9c1aee
#277
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Presubmit | |
on: [push, pull_request] | |
jobs: | |
format: | |
name: Code formatting check | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Install packages | |
run: sudo apt-get install -y clang-format | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Check format | |
run: | | |
./tests/check-format.sh | |
build: | |
name: Build ${{ matrix.os }} ${{ matrix.config }} | |
needs: format | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, macos-latest, windows-latest] | |
config: [Debug,Release] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Setup Ninja | |
uses: seanmiddleditch/gha-setup-ninja@master | |
- name: Setup ccache | |
uses: hendrikmuhs/[email protected] | |
with: | |
variant: sccache | |
key: ${{ matrix.os }}-${{ matrix.config }} | |
- name: Configure | |
shell: bash | |
run: | | |
set -ex | |
mkdir build | |
cd build | |
mkdir install | |
cmake .. -G Ninja \ | |
-DSPIRV_WERROR=OFF \ | |
-DCMAKE_BUILD_TYPE=${{ matrix.config }} \ | |
-DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache \ | |
-DCMAKE_INSTALL_PREFIX='${{ github.workspace }}/build/install' | |
- name: Build | |
run: cmake --build ./build --config ${{ matrix.config }} -j3 | |
- name: Install | |
run: cmake --install ./build | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: spirv2clc-${{ matrix.os }}-${{ matrix.config }} | |
path: ${{ github.workspace }}/build/install |