Skip to content

Commit 25c912a

Browse files
authored
Change to run on x86 system
1 parent aa11846 commit 25c912a

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,28 +1466,25 @@ jobs:
14661466
cann: ['openeuler-python3.10-cann8.0.rc3.beta1']
14671467
build: ['Release']
14681468
device: ['ascend910b3']
1469-
1469+
container:
1470+
image: ascendai/cann:${{ matrix.cann }}
14701471
steps:
14711472
- name: Clone
14721473
id: checkout
14731474
uses: actions/checkout@v4
14741475

1475-
- name: Dependencies & Build
1476-
uses: uraimo/run-on-arch-action@v2
1477-
with:
1478-
arch: aarch64
1479-
distro: ubuntu22.04
1480-
base_image: --platform=linux/arm64 ascendai/cann:${{ matrix.cann }}
1481-
run: |
1476+
- name: Dependencies
1477+
run: |
14821478
yum update -y
14831479
yum install git cmake gcc gcc-c++ make -y
1484-
export LD_LIBRARY_PATH=/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/aarch64-linux/devlib/:${LD_LIBRARY_PATH}
1480+
export LD_LIBRARY_PATH=/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/x86_64-linux/devlib/:${LD_LIBRARY_PATH}
14851481
1482+
- name: Build
1483+
run: |
14861484
mkdir build
14871485
cd build
14881486
cmake .. \
14891487
-DCMAKE_BUILD_TYPE=${{ matrix.build }}\
14901488
-DGGML_CANN=on\
1491-
-DGGML_NATIVE=OFF\
14921489
-DSOC_TYPE=${{ matrix.device }}
1493-
cmake --build .
1490+
cmake --build . -j $(nproc)

0 commit comments

Comments
 (0)