Skip to content

Commit 8762c68

Browse files
authored
[CI] Fix tsingmicro CI workflow configuration (#736)
- Add missing environment variable ${LLVM_BINARY_DIR}) to $PATH to use the tsingmicro toolchain, and explicitly set environment variables during the build and install phases. - Update the reusable workflow reference from tsingmicro-delivery.yml to tsingmicro3.3-delivery.yml. Signed-off-by: Liu Haoyu <liuhaoyutz@126.com>
1 parent ce20dba commit 8762c68

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/tsingmicro3.3-build-and-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ jobs:
4040
source ~/env.sh
4141
export FLAGTREE_BACKEND=tsingmicro
4242
export TRITON_APPEND_CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Release"
43+
export TX8_DEPS_ROOT=~/.flagtree/tsingmicro/tx8_deps
44+
export LLVM_SYSPATH=~/.flagtree/tsingmicro/tsingmicro-llvm21-glibc2.30-glibcxx3.4.28-python3.10-x64
45+
export LLVM_BINARY_DIR=${LLVM_SYSPATH}/bin
46+
export PYTHONPATH=${LLVM_SYSPATH}/python_packages/mlir_core:$PYTHONPATH
47+
export LD_LIBRARY_PATH=$TX8_DEPS_ROOT/lib:$LD_LIBRARY_PATH
48+
export PATH=${LLVM_BINARY_DIR}:${PATH}
4349
cd python
4450
python3 -m pip install . --no-build-isolation
4551

.github/workflows/tsingmicro3.3-delivery.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ on:
3838

3939
jobs:
4040
call-delivery:
41-
uses: flagos-ai/flagtree/.github/workflows/tsingmicro-delivery.yml@main
41+
uses: flagos-ai/flagtree/.github/workflows/tsingmicro3.3-delivery.yml@main
4242
with:
4343
WHL_VER: ${{ inputs.WHL_VER }}
4444
PYTHON_VER: ${{ inputs.PYTHON_VER }}

0 commit comments

Comments
 (0)