Merge pull request #962 from vsg-dev/DescriptorBinding #3814
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: CI | |
on: | |
push: | |
pull_request: | |
env: | |
BuildDocEnabled: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | |
CMakeVersion: 3.10.x | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
vulkan-version: [1.3.224.1] | |
build-shared: [OFF] | |
include: | |
- build-shared: ON | |
os: windows-latest | |
vulkan-version: 1.3.224.1 | |
continue-on-error: ${{ matrix.vulkan-version == 'latest' }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup cmake | |
uses: jwlawson/[email protected] | |
with: | |
cmake-version: ${{ env.CMakeVersion }} | |
- name: Install Vulkan SDK | |
uses: humbletim/[email protected] | |
with: | |
version: ${{ matrix.vulkan-version }} | |
cache: true | |
- name: Add MSBuild to PATH | |
uses: microsoft/[email protected] | |
if: startsWith(matrix.os, 'windows') | |
- name: Build and Install VSG | |
shell: bash | |
run: | | |
if [ "$RUNNER_OS" == "Windows" ]; then | |
cmake . -DBUILD_SHARED_LIBS=${{matrix.build-shared}} -A x64 | |
MSBuild.exe INSTALL.vcxproj -p:Configuration=Release | |
elif [ "$RUNNER_OS" == "Linux" ]; then | |
cmake . -DBUILD_SHARED_LIBS=${{matrix.build-shared}} | |
make -j 3 && sudo make install | |
elif [ "$RUNNER_OS" == "macOS" ]; then | |
cmake . -DBUILD_SHARED_LIBS=${{matrix.build-shared}} | |
make -j 4 && make install | |
else | |
echo "$RUNNER_OS not supported" | |
exit 1 | |
fi |