Skip to content

Commit 1dbfe21

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

File tree

2 files changed

+54
-1
lines changed

2 files changed

+54
-1
lines changed

.github/workflows/build.yml

Lines changed: 53 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,58 @@ jobs:
3232
cmake -B build
3333
cmake --build build --config Release -j $(nproc)'
3434
35+
ubuntu-latest-arm64:
36+
runs-on: ubuntu-latest-arm64
37+
38+
strategy:
39+
fail-fast: false
40+
matrix:
41+
arch: [linux/arm64, linux/arm/v7]
42+
43+
steps:
44+
- name: Clone
45+
uses: actions/checkout@v4
46+
47+
- name: Set up QEMU
48+
uses: docker/setup-qemu-action@v3
49+
50+
- name: Build ${{ matrix.arch }}
51+
run: |
52+
docker run --platform ${{ matrix.arch }} --rm \
53+
-v ${{ github.workspace }}:/workspace \
54+
-w /workspace ${{ env.ubuntu_image }} /bin/sh -c '
55+
set -e
56+
apt update
57+
apt install -y build-essential libsdl2-dev cmake
58+
cmake -B build -DGGML_NATIVE=OFF -DGGML_CPU_ARM_ARCH=armv8-a
59+
cmake --build build --config Release -j $(nproc)'
60+
61+
ubuntu-latest-arm-v7:
62+
runs-on: ubuntu-latest-arm-v7
63+
64+
strategy:
65+
fail-fast: false
66+
matrix:
67+
arch: [linux/arm64, linux/arm/v7]
68+
69+
steps:
70+
- name: Clone
71+
uses: actions/checkout@v4
72+
73+
- name: Set up QEMU
74+
uses: docker/setup-qemu-action@v3
75+
76+
- name: Build ${{ matrix.arch }}
77+
run: |
78+
docker run --platform ${{ matrix.arch }} --rm \
79+
-v ${{ github.workspace }}:/workspace \
80+
-w /workspace ${{ env.ubuntu_image }} /bin/sh -c '
81+
set -e
82+
apt update
83+
apt install -y build-essential libsdl2-dev cmake
84+
cmake -B build -DGGML_NATIVE=OFF -DGGML_CPU_ARM_ARCH=armv7-a
85+
cmake --build build --config Release -j $(nproc)'
86+
3587
macOS-latest:
3688
runs-on: macOS-latest
3789

src/whisper.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5093,6 +5093,7 @@ static void whisper_process_logits(
50935093
// printf("%16s : prob=%9.5f logit=%9.5f logprob=%9.5f\n", token.c_str(), prob, logit, logprob);
50945094
//}
50955095

5096+
//
50965097
// print sorted
50975098
{
50985099
std::vector<std::pair<float, int>> pairs;

0 commit comments

Comments
 (0)