DynamicTextureAtlas: fix m_TexArraySize race with monotonic atomic up… #4434
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: | |
| runs-on: ubuntu-24.04 | |
| name: Linux -> Pre-checks | |
| steps: | |
| - name: Clone repository | |
| uses: actions/checkout@v4 | |
| - name: Format validation | |
| shell: bash | |
| working-directory: ${{github.workspace}}/BuildTools/FormatValidation | |
| run: ./validate_format_linux.sh | |
| - name: Codespell | |
| uses: codespell-project/actions-codespell@master | |
| with: | |
| check_filenames: true | |
| ignore_words_file: .github/.codespellignore | |
| skip: ./.git,./ThirdParty | |
| path: . | |
| build: | |
| needs: precheks | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: "GCC" | |
| build_type: "Debug" | |
| cmake_generator: "Unix Makefiles" | |
| cmake_args: "-DDILIGENT_BUILD_TESTS=ON" | |
| cc: "gcc-14" | |
| cxx: "g++-14" | |
| - name: "GCC" | |
| build_type: "Release" | |
| cmake_generator: "Unix Makefiles" | |
| cmake_args: "-DDILIGENT_BUILD_TESTS=ON" | |
| cc: "gcc-14" | |
| cxx: "g++-14" | |
| - name: "Clang" | |
| build_type: "Debug" | |
| cmake_generator: "Ninja" | |
| cmake_args: "-DDILIGENT_BUILD_TESTS=ON" | |
| cc: "clang-18" | |
| cxx: "clang++-18" | |
| - name: "Clang" | |
| build_type: "Release" | |
| cmake_generator: "Ninja" | |
| cmake_args: "-DDILIGENT_BUILD_TESTS=ON" | |
| cc: "clang-18" | |
| cxx: "clang++-18" | |
| - name: "Clang-NO_GLSLANG" | |
| build_type: "Debug" | |
| cmake_generator: "Ninja" | |
| cmake_args: "-DDILIGENT_BUILD_CORE_TESTS=ON -DDILIGENT_NO_OPENGL=ON -DDILIGENT_NO_GLSLANG=ON" | |
| cc: "clang-18" | |
| cxx: "clang++-18" | |
| - name: "Clang-NO_GLSLANG-NO_HLSL" | |
| build_type: "Release" | |
| cmake_generator: "Ninja" | |
| cmake_args: "-DDILIGENT_BUILD_CORE_TESTS=ON -DDILIGENT_NO_GLSLANG=ON -DDILIGENT_NO_HLSL=ON" | |
| cc: "clang-18" | |
| cxx: "clang++-18" | |
| name: Linux -> ${{ matrix.name }}-x64, ${{ matrix.build_type }} | |
| steps: | |
| - name: Clone repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Set up build environment | |
| if: success() | |
| uses: DiligentGraphics/github-action/setup-build-env@v10 | |
| with: | |
| platform: Linux | |
| cmake-generator: ${{ matrix.cmake_generator }} | |
| - name: Test Build Scripts | |
| if: success() | |
| shell: bash | |
| run: | | |
| # Test File2Include utility | |
| cd "${{ github.workspace }}/BuildTools/File2Include" | |
| python -m unittest tests.py | |
| - name: Configure CMake | |
| if: success() | |
| uses: DiligentGraphics/github-action/configure-cmake@v10 | |
| with: | |
| cc: ${{ matrix.cc }} | |
| cxx: ${{ matrix.cxx }} | |
| generator: ${{ matrix.cmake_generator }} | |
| build-type: ${{ matrix.build_type }} | |
| cmake-args: ${{ matrix.cmake_args }} | |
| - name: Build | |
| id: build | |
| if: success() | |
| uses: DiligentGraphics/github-action/build@v10 | |
| with: | |
| target: install | |
| - name: DiligentCoreTest | |
| if: success() | |
| uses: DiligentGraphics/github-action/run-core-tests@v10 | |
| - name: DiligentCoreAPITest 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') && (matrix.name == 'Clang' || matrix.name == 'GCC') }} | |
| uses: DiligentGraphics/github-action/run-core-gpu-tests@v10 | |
| with: | |
| mode: vk_sw | |
| - name: DiligentCoreAPITest VK Compatibility | |
| if: ${{ (success() || failure() && steps.build.outcome == 'success') && (matrix.name == 'Clang' || matrix.name == 'GCC') }} | |
| uses: DiligentGraphics/github-action/run-core-gpu-tests@v10 | |
| with: | |
| mode: vk_sw | |
| vk-compatibility: true | |
| - name: DiligentCoreAPITest GL | |
| if: ${{ (success() || failure() && steps.build.outcome == 'success') && (matrix.name == 'Clang' || matrix.name == 'GCC') }} | |
| uses: DiligentGraphics/github-action/run-core-gpu-tests@v10 | |
| with: | |
| mode: gl | |
| - name: DiligentCoreAPITest GL with Non-Separable Programs | |
| if: ${{ (success() || failure() && steps.build.outcome == 'success') && (matrix.name == 'Clang' || matrix.name == 'GCC') }} | |
| uses: DiligentGraphics/github-action/run-core-gpu-tests@v10 | |
| with: | |
| mode: gl | |
| non-separable-progs: true | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| if: ${{ success() && matrix.build_type != 'Debug' }} | |
| with: | |
| name: DiligentCore-Linux-${{ matrix.name }}-x64-${{ matrix.build_type }} | |
| path: | | |
| ${{env.DILIGENT_INSTALL_DIR}} | |
| !${{env.DILIGENT_INSTALL_DIR}}/**/*.a | |
| retention-days: 90 |