Skip to content

Bump external/SPIRV-Headers from 8e2ad27 to 4f7b471 #260

Bump external/SPIRV-Headers from 8e2ad27 to 4f7b471

Bump external/SPIRV-Headers from 8e2ad27 to 4f7b471 #260

Workflow file for this run

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@v3
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@v3
with:
fetch-depth: 0
submodules: recursive
- name: Setup Ninja
uses: seanmiddleditch/gha-setup-ninja@master
- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1.2
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@v3
with:
name: spirv2clc-${{ matrix.os }}-${{ matrix.config }}
path: ${{ github.workspace }}/build/install