Merge branch 'master' of https://github.com/krOoze/Hello_Triangle #61
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: build CI | |
on: | |
push: | |
branches: [ '*' ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
Win_jorb: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
build_config: ['Debug', 'Release'] | |
arch: ['x64', 'Win32'] | |
defaults: | |
run: | |
shell: cmd | |
env: | |
VULKAN_SDK: ${{ github.workspace }}\VulkanSDK | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
repository: 'krOoze/vk_sdk_lite' | |
path: ${{ env.VULKAN_SDK }} | |
ref: windows | |
persist-credentials: false | |
- uses: actions/checkout@v2 | |
with: | |
path: 'source' | |
submodules: 'recursive' | |
persist-credentials: false | |
- run: md source\build | |
- run: cmake -G "Visual Studio 16 2019" -A ${{ matrix.arch }} .. | |
working-directory: source\build | |
- run: cmake --build . --config ${{ matrix.build_config }} | |
working-directory: source\build | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: Hello Vulkan Triangle -- Windows ${{ matrix.build_config }} | |
path: source\build\${{ matrix.build_config }}\HelloTriangle.exe | |
linux_jorb: | |
if: endsWith( github.ref, 'dxgi_interop' ) == false | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
build_config: ['Debug', 'Release'] | |
defaults: | |
run: | |
shell: bash | |
env: | |
VULKAN_SDK: ${{ github.workspace }}/VulkanSDK/x86_64 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
repository: 'krOoze/vk_sdk_lite' | |
path: 'VulkanSDK' | |
ref: linux | |
persist-credentials: false | |
- run: echo "${{ env.VULKAN_SDK }}/bin" >> $GITHUB_PATH | |
- run: sudo apt update && sudo apt install xorg-dev | |
- uses: actions/checkout@v2 | |
with: | |
path: 'source' | |
submodules: 'recursive' | |
persist-credentials: false | |
- run: mkdir -p source/build | |
- run: cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_config }} -G "Unix Makefiles" .. | |
working-directory: source/build | |
- run: cmake --build . | |
working-directory: source/build | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: Hello Vulkan Triangle App -- Linux ${{ matrix.build_config }} | |
path: source/build/HelloTriangle | |
mac_jorb: | |
if: endsWith( github.ref, 'dxgi_interop' ) == false | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
build_config: ['Debug', 'Release'] | |
defaults: | |
run: | |
shell: bash | |
env: | |
VULKAN_SDK: ${{ github.workspace }}/VulkanSDK/macOS | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
repository: 'krOoze/vk_sdk_lite' | |
path: 'VulkanSDK' | |
ref: macos | |
persist-credentials: false | |
- run: echo "${{ env.VULKAN_SDK }}/bin" >> $GITHUB_PATH | |
- uses: actions/checkout@v2 | |
with: | |
path: 'source' | |
submodules: 'recursive' | |
persist-credentials: false | |
- run: mkdir -p source/build | |
- run: cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_config }} .. | |
working-directory: source/build | |
- run: cmake --build . | |
working-directory: source/build | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: Hello Vulkan Triangle App -- macOS ${{ matrix.build_config }} | |
path: source/build/HelloTriangle |