Skip to content

Commit 8da6797

Browse files
committed
ci : try to fix arm builds
1 parent 1deb9a6 commit 8da6797

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.github/workflows/build.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
arch: [linux/amd64, linux/arm64, linux/arm/v7, linux/ppc64le]
15+
arch: [linux/amd64, linux/ppc64le]
1616

1717
steps:
1818
- name: Clone
@@ -32,6 +32,35 @@ jobs:
3232
cmake -B build
3333
cmake --build build --config Release -j $(nproc)'
3434
35+
ubuntu-latest-arm:
36+
runs-on: ubuntu-latest
37+
38+
strategy:
39+
fail-fast: false
40+
matrix:
41+
arch: [linux/arm64, linux/arm/v7]
42+
arm_arch_flag:
43+
linux/arm64: armv8-a
44+
linux/arm/v7: armv7-a
45+
46+
steps:
47+
- name: Clone
48+
uses: actions/checkout@v4
49+
50+
- name: Set up QEMU
51+
uses: docker/setup-qemu-action@v3
52+
53+
- name: Build ${{ matrix.arch }}
54+
run: |
55+
docker run --platform ${{ matrix.arch }} --rm \
56+
-v ${{ github.workspace }}:/workspace \
57+
-w /workspace ${{ env.ubuntu_image }} /bin/sh -c '
58+
set -e
59+
apt update
60+
apt install -y build-essential libsdl2-dev cmake
61+
cmake -B build -DGGML_NATIVE=OFF -DGGML_CPU_ARM_ARCH=${{ matrix.arm_arch_flag }}
62+
cmake --build build --config Release -j $(nproc)'
63+
3564
macOS-latest:
3665
runs-on: macOS-latest
3766

0 commit comments

Comments
 (0)