Skip to content

Commit b3941ed

Browse files
Merge pull request #56 from YdrMaster/main
issue/55: CI 在 Windows 上执行
2 parents f385af7 + c32d59f commit b3941ed

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ on:
99
jobs:
1010
build:
1111
name: Build
12-
runs-on: ubuntu-latest
1312
strategy:
1413
fail-fast: false
1514
matrix:
15+
os: [windows-latest, ubuntu-latest]
1616
type: [debug, release]
17+
runs-on: ${{ matrix.os }}
1718
steps:
1819

1920
- name: checkout code

xmake.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ local YELLOW = '\27[1;33m'
55
local NC = '\27[0m' -- No Color
66

77
add_includedirs("include")
8+
set_encodings("utf-8")
89

910
if is_mode("debug") then
1011
add_cxflags("-g -O0")
@@ -83,9 +84,9 @@ option("moore-gpu")
8384
set_description("Whether to complie implementations for Moore Threads GPU")
8485
option_end()
8586

86-
if has_config("mthreads-gpu") then
87-
add_defines("ENABLE_MUSA_API")
88-
end
87+
if has_config("moore-gpu") then
88+
add_defines("ENABLE_MUSA_API")
89+
end
8990

9091
-- 海光
9192
option("sugon-dcu")

xmake/cpu.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ target("infiniop-cpu")
22
on_install(function (target) end)
33
set_kind("static")
44

5-
add_cxflags("-Wall", "-Werror")
5+
set_warnings("all", "error")
66

77
if not is_plat("windows") then
88
add_cxflags("-fPIC")
@@ -14,4 +14,4 @@ target("infiniop-cpu")
1414
add_cxflags("-fopenmp")
1515
add_ldflags("-fopenmp")
1616
end
17-
target_end()
17+
target_end()

0 commit comments

Comments
 (0)