From dc2541144bf81c3624549ee3ac9623ec496c2406 Mon Sep 17 00:00:00 2001 From: tiero <3596602+tiero@users.noreply.github.com> Date: Fri, 27 Oct 2023 01:27:39 +0200 Subject: [PATCH] gha: compile for arm64 --- .github/workflows/release.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 29a8691..6d9dcca 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -104,7 +104,16 @@ jobs: target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} restore-keys: ${{ runner.os }}-cargo- - + + - name: Install CMake + run: brew install cmake + + - name: Build whisper C++ for Apple Silicon + run: | + mkdir build-aarch64 && cd build-aarch64 + cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=arm64 .. + make + - name: Add aarch64 target run: rustup target add aarch64-apple-darwin