Skip to content

Commit

Permalink
Add workflow_dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnavMehta3000 authored Aug 7, 2024
1 parent 8650868 commit 48fdcba
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
name: Windows

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:

jobs:
build:
Expand All @@ -16,18 +15,24 @@ jobs:

matrix:
build-config: [ debug, release ]
rhi: [ dx11, dx12, opengl, vulkan ]
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 test */compile_pass --file=${GITHUB_WORKSPACE}/xmake.lua -y
xmake test */compile_pass --file=${GITHUB_WORKSPACE}/xmake.lua -y -vD

0 comments on commit 48fdcba

Please sign in to comment.