Skip to content

Web: Disable WebGPU button if WebGPU is not supported (close #216) #1239

Web: Disable WebGPU button if WebGPU is not supported (close #216)

Web: Disable WebGPU button if WebGPU is not supported (close #216) #1239

name: Emscripten build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: ["windows-latest", "ubuntu-20.04", "macos-14"]
build_type: ["Debug", "Release"]
exclude:
# Exclude MacOS-Release
- os: "macos-14"
build_type: "Release"
include:
- os: "windows-latest"
build_type: "Release"
host_name: "Win10"
# Do not build WebGPU on Windows/Release as it is extremely slow
cmake_args: "-DDILIGENT_EMSCRIPTEN_STRIP_DEBUG_INFO=ON -DDILIGENT_NO_WEBGPU=ON"
- os: "windows-latest"
build_type: "Debug"
host_name: "Win10"
cmake_args: "-DDILIGENT_EMSCRIPTEN_STRIP_DEBUG_INFO=ON"
- os: "ubuntu-20.04"
host_name: "Linux"
cmake_args: "-DDILIGENT_EMSCRIPTEN_STRIP_DEBUG_INFO=ON"
- os: "macos-14"
host_name: "MacOS"
cmake_args: "-DDILIGENT_EMSCRIPTEN_STRIP_DEBUG_INFO=ON"
runs-on: ${{ matrix.os }}
name: ${{ matrix.host_name }} -> Emscripten, ${{ matrix.build_type }}
steps:
- name: Checkout
uses: DiligentGraphics/github-action/checkout@v1
- name: Set up build environment
if: success()
uses: DiligentGraphics/github-action/setup-build-env@v1
with:
platform: Emscripten
- name: Configure CMake
if: success()
uses: DiligentGraphics/github-action/configure-cmake@v1
with:
build-type: ${{ matrix.build_type }}
cmake-args: ${{ matrix.cmake_args }}
- name: Build
if: success()
uses: DiligentGraphics/github-action/build@v1