Commit e4cfb9f6 authored by PanZezhong's avatar PanZezhong
Browse files

issue/134 修改CI

parent 4ffb2f73
......@@ -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 with xmake
run: xmake build
- name: Build & Install (Windows)
if: matrix.os == 'windows-latest'
run: scripts/install.bat . --omp=y
- 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: python test
if: matrix.os != 'windows-latest'
- name: Python Test (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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment