Return struct values by output pointer for C API compatibility (#765) #4175
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: Emscripten build | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: ["windows-latest", "ubuntu-24.04", "macos-15"] | |
| build_type: ["Debug", "Release"] | |
| exclude: | |
| # Exclude MacOS-Release | |
| - os: "macos-15" | |
| build_type: "Release" | |
| include: | |
| - os: "windows-latest" | |
| host_name: "Win10" | |
| cmake_args: "-DDILIGENT_BUILD_CORE_TESTS=ON -DDILIGENT_EMSCRIPTEN_STRIP_DEBUG_INFO=ON" | |
| - os: "ubuntu-24.04" | |
| host_name: "Linux" | |
| cmake_args: "-DDILIGENT_BUILD_CORE_TESTS=ON -DDILIGENT_EMSCRIPTEN_STRIP_DEBUG_INFO=ON" | |
| - os: "macos-15" | |
| host_name: "MacOS" | |
| cmake_args: "-DDILIGENT_BUILD_CORE_TESTS=ON -DDILIGENT_BUILD_CORE_INCLUDE_TEST=ON" | |
| runs-on: ${{ matrix.os }} | |
| name: ${{ matrix.host_name }} -> Emscripten, ${{ 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: Web | |
| - name: Configure CMake | |
| if: success() | |
| uses: DiligentGraphics/github-action/configure-cmake@v10 | |
| with: | |
| build-type: ${{ matrix.build_type }} | |
| cmake-args: ${{ matrix.cmake_args }} | |
| - name: Build | |
| if: success() | |
| uses: DiligentGraphics/github-action/build@v10 |