Skip to content

Release surface texture #734

Release surface texture

Release surface texture #734

Workflow file for this run

name: CMake
# Controls when the workflow will run
on:
push:
pull_request:
workflow_dispatch:
env:
BUILD_TYPE: Release
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
backend: [ WGPU, DAWN ]
include:
- os: ubuntu-latest
backend: WGPU
install-deps: |
sudo apt-get update -y
sudo apt-get install -y libwayland-dev libxkbcommon-dev xorg-dev
- os: ubuntu-latest
backend: DAWN
install-deps: |
sudo apt-get update -y
sudo apt-get install -y libwayland-dev libxkbcommon-dev xorg-dev libxrandr-dev libxinerama-dev libxcursor-dev mesa-common-dev libx11-xcb-dev libxi-dev pkg-config
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
# Cancel if no CMakeLists is found
- name: Look for CMakeLists file
id: check-cmakelists
run: |
if test -f CMakeLists.txt; then
echo "cmakelists-exists=true" >> "$GITHUB_OUTPUT"
fi
shell: bash
- name: Install dependencies
if: ${{ matrix.install-deps && steps.check-cmakelists.outputs.cmakelists-exists }}
run: ${{ matrix.install-deps }}
- name: Configure CMake
if: ${{ steps.check-cmakelists.outputs.cmakelists-exists }}
run: >
cmake
-S .
-B ${{github.workspace}}/build
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
-DWEBGPU_BACKEND=${{ matrix.backend }}
- name: Build
if: ${{ steps.check-cmakelists.outputs.cmakelists-exists }}
run: >
cmake
--build ${{github.workspace}}/build
--config ${{env.BUILD_TYPE}}