From 48fdcba866caf86a0ba6a0c70b2e6fbea2fabbbf Mon Sep 17 00:00:00 2001 From: Arnav Mehta <77837038+ArnavMehta3000@users.noreply.github.com> Date: Wed, 7 Aug 2024 20:52:21 +0100 Subject: [PATCH] Add workflow_dispatch --- .github/workflows/windows.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 65eff4b..a200628 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -2,10 +2,9 @@ name: Windows on: - push: - branches: [ "main" ] pull_request: branches: [ "main" ] + workflow_dispatch: jobs: build: @@ -16,13 +15,19 @@ 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: | @@ -30,4 +35,4 @@ jobs: - 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