Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update windows build action #32

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
name: Windows

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

Expand All @@ -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
4 changes: 1 addition & 3 deletions xmake.lua
Original file line number Diff line number Diff line change
@@ -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")
Expand All @@ -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)

Expand Down
Loading