diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 65eff4b..a57cfd2 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -2,8 +2,6 @@ name: Windows on: - push: - branches: [ "main" ] pull_request: branches: [ "main" ] @@ -16,18 +14,20 @@ 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 ] + 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 + xmake f --file=${GITHUB_WORKSPACE}/xmake.lua --rhi=${{ matrix.rhi }} -m ${{ matrix.build-config }} -y -vD - 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 diff --git a/xmake.lua b/xmake.lua index d1870d8..0b0fed2 100644 --- a/xmake.lua +++ b/xmake.lua @@ -1,4 +1,4 @@ -set_xmakever("2.9.2") +set_xmakever("2.9.4") add_rules("mode.debug", "mode.release") set_allowedmodes("debug", "release") set_allowedplats("windows", "linux", "macosx") @@ -19,8 +19,6 @@ set_warnings("all", "extra") -- Enable link time optimization set_policy("build.optimization.lto", true) --- Install packages locally instead of system cache -set_policy("package.install_locally", true) -- Allow auto build before running set_policy("run.autobuild", true)