Skip to content

Commit

Permalink
ci : try to fix arm builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Jan 3, 2025
1 parent 1deb9a6 commit 8da6797
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
arch: [linux/amd64, linux/arm64, linux/arm/v7, linux/ppc64le]
arch: [linux/amd64, linux/ppc64le]

steps:
- name: Clone
Expand All @@ -32,6 +32,35 @@ jobs:
cmake -B build
cmake --build build --config Release -j $(nproc)'
ubuntu-latest-arm:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
arch: [linux/arm64, linux/arm/v7]
arm_arch_flag:
linux/arm64: armv8-a
linux/arm/v7: armv7-a

steps:
- name: Clone
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Build ${{ matrix.arch }}
run: |
docker run --platform ${{ matrix.arch }} --rm \
-v ${{ github.workspace }}:/workspace \
-w /workspace ${{ env.ubuntu_image }} /bin/sh -c '
set -e
apt update
apt install -y build-essential libsdl2-dev cmake
cmake -B build -DGGML_NATIVE=OFF -DGGML_CPU_ARM_ARCH=${{ matrix.arm_arch_flag }}
cmake --build build --config Release -j $(nproc)'
macOS-latest:
runs-on: macOS-latest

Expand Down

0 comments on commit 8da6797

Please sign in to comment.