Skip to content

GHA: Upload DiligentCoreTest.exe #1262

GHA: Upload DiligentCoreTest.exe

GHA: Upload DiligentCoreTest.exe #1262

Workflow file for this run

name: Win32/UWP build
on: [push, pull_request]
jobs:
build:
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
name: ["MinGW"]
toolset: ["x64"]
build_type: ["Release"]
cmake_generator: ["MinGW Makefiles"]
cmake_args: ["-DDILIGENT_BUILD_CORE_TESTS=ON -DILIGENT_NO_DIRECT3D11=ON -DILIGENT_NO_DIRECT3D12=ON -DDILIGENT_NO_VULKAN=ON"]
platform: ["Win32"]
name: Win10 -> ${{ matrix.name }}-${{ matrix.toolset }}, ${{ matrix.build_type }}
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up build environment
if: success()
uses: DiligentGraphics/github-action/setup-build-env@mingw
with:
platform: ${{ matrix.platform }}
cmake-generator: ${{ matrix.cmake_generator }}
ninja-vs-arch: ${{ matrix.toolset }}
- name: Configure CMake
if: success()
uses: DiligentGraphics/github-action/configure-cmake@mingw
with:
generator: ${{ matrix.cmake_generator }}
vs-arch: ${{ matrix.toolset }}
build-type: ${{ matrix.build_type }}
cmake-args: ${{ matrix.cmake_args }}
- name: Build
id: build
if: success()
uses: DiligentGraphics/github-action/build@v1
with:
target: install
#- name: DiligentCoreTest
# if: ${{ success() && matrix.name != 'UWP'}}
# uses: DiligentGraphics/github-action/run-core-tests@mingw
- name: Upload artifact
uses: actions/upload-artifact@v3
if: ${{ success() && matrix.build_type != 'Debug' && matrix.cmake_generator != 'Ninja' }}
with:
name: DiligentCore-${{ matrix.name }}-${{ matrix.toolset }}-${{ matrix.build_type }}
path: |
${{env.DILIGENT_BUILD_DIR}}/Tests/DiligentCoreTest/DiligentCoreTest.exe
!${{env.DILIGENT_INSTALL_DIR}}/**/*.lib
!${{env.DILIGENT_INSTALL_DIR}}/**/*.a
retention-days: 90