Radient: decouple material address modes from Diligent #3023
This file contains hidden or 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: Linux build | |
| on: [push, pull_request] | |
| jobs: | |
| precheks: | |
| name: Linux -> Pre-checks | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Clone DiligentCore | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: DiligentGraphics/DiligentCore | |
| path: DiligentCore | |
| - name: Clone DiligentFX | |
| uses: actions/checkout@v6 | |
| with: | |
| path: DiligentFX | |
| - name: Format validation | |
| shell: bash | |
| working-directory: ${{github.workspace}}/DiligentFX/BuildTools/FormatValidation | |
| run: ./validate_format_linux.sh | |
| - name: Codespell | |
| uses: codespell-project/actions-codespell@master | |
| with: | |
| check_filenames: true | |
| ignore_words_file: ./DiligentFX/.github/.codespellignore | |
| skip: ./DiligentFX/.git,./DiligentFX/ThirdParty | |
| path: ./DiligentFX | |
| build: | |
| needs: precheks | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| name: ["GCC", "Clang"] | |
| build_type: ["Debug", "Release"] | |
| cmake_args: ["-DDILIGENT_BUILD_FX_INCLUDE_TEST=ON -DDILIGENT_BUILD_FX_TESTS=ON"] | |
| include: | |
| - name: "GCC" | |
| cmake_generator: "Unix Makefiles" | |
| cc: "gcc-14" | |
| cxx: "g++-14" | |
| - name: "Clang" | |
| cmake_generator: "Ninja" | |
| cc: "clang-18" | |
| cxx: "clang++-18" | |
| - name: "Clang-ASAN" | |
| build_type: "RelWithDebInfo" | |
| cmake_generator: "Ninja" | |
| cmake_args: "-DDILIGENT_BUILD_FX_TESTS=ON" | |
| sanitizer: "address" | |
| cc: "clang-18" | |
| cxx: "clang++-18" | |
| - name: "Clang-TSAN" | |
| build_type: "RelWithDebInfo" | |
| cmake_generator: "Ninja" | |
| cmake_args: "-DDILIGENT_BUILD_FX_TESTS=ON" | |
| sanitizer: "thread" | |
| cc: "clang-18" | |
| cxx: "clang++-18" | |
| name: Linux -> ${{ matrix.name }}-x64, ${{ matrix.build_type }} | |
| steps: | |
| - name: Checkout | |
| uses: DiligentGraphics/github-action/checkout@v25 | |
| - name: Set up build environment | |
| if: success() | |
| uses: DiligentGraphics/github-action/setup-build-env@v25 | |
| with: | |
| platform: Linux | |
| cmake-generator: ${{ matrix.cmake_generator }} | |
| - name: Configure CMake | |
| if: success() | |
| uses: DiligentGraphics/github-action/configure-cmake@v25 | |
| with: | |
| cc: ${{ matrix.cc }} | |
| cxx: ${{ matrix.cxx }} | |
| generator: ${{ matrix.cmake_generator }} | |
| build-type: ${{ matrix.build_type }} | |
| cmake-args: ${{ matrix.cmake_args }} | |
| sanitizer: ${{ matrix.sanitizer }} | |
| - name: Build | |
| id: build | |
| if: success() | |
| uses: DiligentGraphics/github-action/build@v25 | |
| - name: RadientTest | |
| if: success() | |
| uses: DiligentGraphics/github-action/run-radient-tests@v25 | |
| - name: RadientGPUTest VK | |
| # NB: it is essential to include failure() to override the default status check of success() | |
| # that is automatically applied to if conditions that don't contain a status check function. | |
| if: ${{ success() || failure() && steps.build.outcome == 'success' }} | |
| uses: DiligentGraphics/github-action/run-radient-gpu-tests@v25 | |
| with: | |
| mode: vk_sw | |
| - name: RadientGPUTest GL | |
| if: ${{ success() || failure() && steps.build.outcome == 'success' }} | |
| uses: DiligentGraphics/github-action/run-radient-gpu-tests@v25 | |
| with: | |
| mode: gl | |
| - name: Clone Radient Test Data | |
| id: radient_test_data | |
| if: ${{ (success() || failure()) && steps.build.outcome == 'success' }} | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: DiligentGraphics/DiligentTestData | |
| ref: radient | |
| path: RadientTestData | |
| - name: Clone glTF Sample Assets | |
| id: gltf_sample_assets | |
| if: ${{ (success() || failure()) && steps.build.outcome == 'success' }} | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: KhronosGroup/glTF-Sample-Assets | |
| ref: ${{env.DILIGENT_GLTF_SAMPLE_ASSETS_COMMIT}} | |
| path: glTF-Sample-Assets | |
| - name: RadientRenderTest VK | |
| if: ${{ (success() || failure()) && steps.build.outcome == 'success' && steps.radient_test_data.outcome == 'success' && steps.gltf_sample_assets.outcome == 'success' }} | |
| uses: DiligentGraphics/github-action/run-radient-render-tests@v25 | |
| with: | |
| mode: vk_sw | |
| models-path: ${{github.workspace}}/glTF-Sample-Assets | |
| assets-path: ${{github.workspace}}/RadientTestData | |
| update-golden-images: true | |
| - name: Upload Radient Render Images | |
| if: ${{ always() && !cancelled() && steps.build.outcome == 'success' && steps.radient_test_data.outcome == 'success' && steps.gltf_sample_assets.outcome == 'success' }} | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: RadientRenderImages-Linux-${{matrix.name}}-${{matrix.build_type}} | |
| path: | | |
| RadientTestData/GoldenImages/**/*_vk.png | |
| RadientTestData/GoldenImages/**/*_gl.png | |
| RadientTestData/GoldenImagesDifferences | |
| if-no-files-found: error |