Skip to content

Fix MSYS CI

Fix MSYS CI #4

Workflow file for this run

name: CMake
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
BUILD_TYPE: Release
jobs:
build:
strategy:
fail-fast: false
matrix:
system: [ Linux-x64, Windows-MSVC-x64, Windows-MSYS-x64, MacOS-x64, MacOS-ARM ]
webgpu-backend: [ DAWN, WGPU ]
link-type: [ SHARED, STATIC ]
build-type: [ Debug, Release ]
include:
- system: Linux-x64
runner: ubuntu-latest
install-deps: |
sudo apt-get update -y
sudo apt-get install -y xorg-dev
- system: Windows-MSVC-x64
runner: windows-latest
exe-extension: .exe
is-multiconfig: true
- system: Windows-MSYS-x64
runner: windows-latest
msystem: ucrt64
extra-cmake-args: -G "MSYS Makefiles"
exe-extension: .exe
shell: msys2 {0}
- system: MacOS-ARM
runner: macos-latest
- system: MacOS-x64
runner: macos-13
exclude:
- webgpu-backend: DAWN
link-type: STATIC
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies
if: ${{ matrix.install-deps }}
run: ${{ matrix.install-deps }}
- name: Setup MSYS
if: ${{ matrix.msystem }}
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.msystem }}
pacboy: cmake:p egl-headers:p
- name: Configure CMake
shell: ${{ matrix.shell }}

Check failure on line 69 in .github/workflows/cmake.yml

View workflow run for this annotation

GitHub Actions / CMake

Invalid workflow file

The workflow is not valid. .github/workflows/cmake.yml (Line: 69, Col: 14): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.shell .github/workflows/cmake.yml (Line: 80, Col: 14): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.shell
run: >
cmake
-S examples
-B build
-DWEBGPU_BACKEND=${{ matrix.webgpu-backend }}
-D${{ matrix.webgpu-backend }}_LINK_TYPE=${{ matrix.link-type }}
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }}
${{ matrix.extra-cmake-args }}
- name: Build
shell: ${{ matrix.shell }}
run: >
cmake
--build build
--config ${{ matrix.build-type }}