-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (30 loc) · 1.22 KB
/
windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Ensures all xmake compile tests pass on windows for every RHI
name: Windows
on:
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
build-config: [ debug, release ]
rhi: [ dx11 ] # 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
actions-cache-folder: '.xmake-cache'
- 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 */compile_pass --file=${GITHUB_WORKSPACE}/xmake.lua -y -vD