Skip to content

Update windows.yml

Update windows.yml #3

Workflow file for this run

# Ensures all xmake compile tests pass on windows for every RHI
name: Windows
on:
push:
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
build-config: [ debug, release ]
rhi: [ dx11, opengl ] # We currently do not support the other API's
# rhi: [ dx11, dx12, opengl, vulkan ]
concurrency:
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-${{ matrix.os }}-${{ matrix.arch }}-Windows
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
- name: Set RHI and build config
run: |
xmake f --file=${GITHUB_WORKSPACE}/xmake.lua --rhi=${{ matrix.rhi }} -m ${{ matrix.build-config }} -y
- name: Run xmake tests
run: |
xmake test test */compile_pass --file=${GITHUB_WORKSPACE}/xmake.lua -y