Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jerrrrry
infinicore
Commits
b3941ede
Unverified
Commit
b3941ede
authored
Feb 18, 2025
by
PanZezhong1725
Committed by
GitHub
Feb 18, 2025
Browse files
Merge pull request #56 from YdrMaster/main
issue/55: CI 在 Windows 上执行
parents
f385af7a
c32d59fa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
.github/workflows/build.yml
.github/workflows/build.yml
+2
-1
xmake.lua
xmake.lua
+4
-3
xmake/cpu.lua
xmake/cpu.lua
+2
-2
No files found.
.github/workflows/build.yml
View file @
b3941ede
...
...
@@ -9,11 +9,12 @@ on:
jobs
:
build
:
name
:
Build
runs-on
:
ubuntu-latest
strategy
:
fail-fast
:
false
matrix
:
os
:
[
windows-latest
,
ubuntu-latest
]
type
:
[
debug
,
release
]
runs-on
:
${{ matrix.os }}
steps
:
-
name
:
checkout code
...
...
xmake.lua
View file @
b3941ede
...
...
@@ -5,6 +5,7 @@ local YELLOW = '\27[1;33m'
local
NC
=
'
\27
[0m'
-- No Color
add_includedirs
(
"include"
)
set_encodings
(
"utf-8"
)
if
is_mode
(
"debug"
)
then
add_cxflags
(
"-g -O0"
)
...
...
@@ -83,9 +84,9 @@ option("moore-gpu")
set_description
(
"Whether to complie implementations for Moore Threads GPU"
)
option_end
()
if
has_config
(
"m
threads
-gpu"
)
then
add_defines
(
"ENABLE_MUSA_API"
)
end
if
has_config
(
"m
oore
-gpu"
)
then
add_defines
(
"ENABLE_MUSA_API"
)
end
-- 海光
option
(
"sugon-dcu"
)
...
...
xmake/cpu.lua
View file @
b3941ede
...
...
@@ -2,7 +2,7 @@ target("infiniop-cpu")
on_install
(
function
(
target
)
end
)
set_kind
(
"static"
)
add_cxfla
gs
(
"
-W
all"
,
"
-W
error"
)
set_warnin
gs
(
"all"
,
"error"
)
if
not
is_plat
(
"windows"
)
then
add_cxflags
(
"-fPIC"
)
...
...
@@ -14,4 +14,4 @@ target("infiniop-cpu")
add_cxflags
(
"-fopenmp"
)
add_ldflags
(
"-fopenmp"
)
end
target_end
()
\ No newline at end of file
target_end
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment