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
e4cfb9f6
Commit
e4cfb9f6
authored
Apr 02, 2025
by
PanZezhong
Browse files
issue/134 修改CI
parent
4ffb2f73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
22 deletions
+33
-22
.github/workflows/build.yml
.github/workflows/build.yml
+33
-22
No files found.
.github/workflows/build.yml
View file @
e4cfb9f6
...
...
@@ -20,35 +20,46 @@ jobs:
-
name
:
checkout code
uses
:
actions/checkout@v4
-
name
:
install black
run
:
pip install black
-
name
:
check format
run
:
python3 scripts/format.py --path src --check
-
name
:
Check Format
run
:
|
pip install black
python3 scripts/format.py --path src --check
-
name
:
install xmake
uses
:
xmake-io/github-action-setup-xmake@v1
with
:
xmake-version
:
latest
-
name
:
configure xmake
run
:
xmake f --omp=y -cv
-
name
:
Build & Install (Linux)
if
:
matrix.os == 'ubuntu-latest'
run
:
bash scripts/install.sh . --omp=y
-
name
:
Build & Install (Windows)
if
:
matrix.os == 'windows-latest'
run
:
scripts/install.bat . --omp=y
-
name
:
build with xmake
run
:
xmake build
-
name
:
install to INFINI_ROOT
if
:
matrix.os != 'windows-latest'
run
:
xmake install
-
name
:
install python packages
run
:
|
pip install numpy
pip install torch
-
name
:
build infiniop-test
if
:
matrix.os != 'windows-latest'
run
:
xmake build infiniop-test
-
name
:
Python Test (Linux)
if
:
matrix.os == 'ubuntu-latest'
run
:
|
export LD_LIBRARY_PATH=$HOME/.infini/lib:$LD_LIBRARY_PATH
python test/infiniop/gemm.py --cpu
python test/infiniop/rms_norm.py --cpu
python test/infiniop/causal_softmax.py --cpu
python test/infiniop/swiglu.py --cpu
python test/infiniop/random_sample.py --cpu
-
name
:
p
ython
t
est
if
:
matrix.os
!
= 'windows-latest'
-
name
:
P
ython
T
est
(Windows)
if
:
matrix.os
=
= 'windows-latest'
run
:
|
pip install torch
LD_LIBRARY_PATH=$HOME/.infini/lib python test/infiniop/gemm.py --cpu
LD_LIBRARY_PATH=$HOME/.infini/lib python test/infiniop/rms_norm.py --cpu
LD_LIBRARY_PATH=$HOME/.infini/lib python test/infiniop/random_sample.py --cpu
set PATH=$env:USERPROFILE\.infini\bin;$env:PATH
python test\infiniop\gemm.py --cpu
python test\infiniop\rms_norm.py --cpu
python test\infiniop\causal_softmax.py --cpu
python test\infiniop\swiglu.py --cpu
python test\infiniop\random_sample.py --cpu
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