Skip to content

Add basic support for replaying from SPIR-V (#421) #492

Add basic support for replaying from SPIR-V (#421)

Add basic support for replaying from SPIR-V (#421) #492

Workflow file for this run

name: build
permissions:
contents: read
on:
push:
paths-ignore:
- '**/*.md'
pull_request:
paths-ignore:
- '**/*.md'
branches:
- main
env:
BUILD_TYPE: RelWithDebInfo
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Check Tabs
run: |
if git grep -n $'\t' *.cpp *.c *.hpp *.h; then echo 'Please replace tabs with spaces in source files.'; false; fi
- name: Check Whitespace
run: |
if git grep -n '[[:blank:]]$' *.cpp *.c *.hpp *.h; then echo 'Please remove trailing whitespace from source files.'; false; fi
build:
needs: check
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
include:
- os: windows-latest
windows-arch: x64
- os: windows-latest
windows-arch: Win32
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Create Build Directory
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Run CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: |
if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
cmake -DENABLE_CLILOADER=1 -DCMAKE_BUILD_TYPE=$BUILD_TYPE -A ${{ matrix.windows-arch }} $GITHUB_WORKSPACE
else
cmake -DENABLE_CLILOADER=1 -DCMAKE_BUILD_TYPE=$BUILD_TYPE $GITHUB_WORKSPACE
fi
- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --parallel 4 --config $BUILD_TYPE
#- name: Test
# working-directory: ${{runner.workspace}}/build
# shell: bash
# run: ctest -C $BUILD_TYPE