Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: M1 Mac compatibility - use apple-m1 target instead of armv8.5-a

Louis Beaumont29c1ff8c169f
diff --git a/.github/workflows/release-app-beta.yml b/.github/workflows/release-app-beta.yml
index 04d044b1b..380b1b546 100644
--- a/.github/workflows/release-app-beta.yml
+++ b/.github/workflows/release-app-beta.yml
@@ -169,9 +169,10 @@ jobs:
if [[ "${{ matrix.os_type }}" == "macos" ]]; then
export PKG_CONFIG_PATH="/usr/local/opt/ffmpeg/lib/pkgconfig:$PKG_CONFIG_PATH"
export PKG_CONFIG_ALLOW_CROSS=1
+ # Fix i8mm build error - use apple-m1 target to ensure M1 compatibility
if [[ "${{ matrix.target }}" == "aarch64-apple-darwin" ]]; then
- export CFLAGS="-march=armv8.5-a"
- export CXXFLAGS="-march=armv8.5-a"
+ export CFLAGS="-mcpu=apple-m1"
+ export CXXFLAGS="-mcpu=apple-m1"
fi
fi
cargo build --release -p screenpipe-server ${{ matrix.args }}
@@ -203,8 +204,9 @@ jobs:
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
CI: true
- CFLAGS: ${{ matrix.target == 'aarch64-apple-darwin' && '-march=armv8.5-a' || '' }}
- CXXFLAGS: ${{ matrix.target == 'aarch64-apple-darwin' && '-march=armv8.5-a' || '' }}
+ # Fix i8mm - use apple-m1 target for M1 compatibility
+ CFLAGS: ${{ matrix.target == 'aarch64-apple-darwin' && '-mcpu=apple-m1' || '' }}
+ CXXFLAGS: ${{ matrix.target == 'aarch64-apple-darwin' && '-mcpu=apple-m1' || '' }}
with:
args: ${{ matrix.tauri-args }}
projectPath: "./screenpipe-app-tauri"
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index 2ad597f99..f08a46670 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -433,11 +433,12 @@ jobs:
if [[ "${{ matrix.os_type }}" == "macos" ]]; then
export PKG_CONFIG_PATH="/usr/local/opt/ffmpeg/lib/pkgconfig:$PKG_CONFIG_PATH"
export PKG_CONFIG_ALLOW_CROSS=1
- # Fix i8mm build error on GitHub runners - target armv8.5-a which doesn't include i8mm
+ # Fix i8mm build error - use apple-m1 target to ensure M1 compatibility
+ # M1 = armv8.4-a (no i8mm), M2+ = armv8.5-a+ (has i8mm)
# See: https://github.com/ggml-org/whisper.cpp/issues/3427
if [[ "${{ matrix.target }}" == "aarch64-apple-darwin" ]]; then
- export CFLAGS="-march=armv8.5-a"
- export CXXFLAGS="-march=armv8.5-a"
+ export CFLAGS="-mcpu=apple-m1"
+ export CXXFLAGS="-mcpu=apple-m1"
fi
fi
cargo build --release -p screenpipe-server ${{ matrix.args }}
@@ -535,10 +536,11 @@ jobs:
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
# https://tauri.app/v1/guides/distribution/sign-macos
CI: true
- # Fix i8mm build error on macOS GitHub runners - target armv8.5-a which doesn't include i8mm
+ # Fix i8mm build error - use apple-m1 target to ensure M1 compatibility
+ # M1 = armv8.4-a (no i8mm), M2+ = armv8.5-a+ (has i8mm)
# See: https://github.com/ggml-org/whisper.cpp/issues/3427
- CFLAGS: ${{ matrix.target == 'aarch64-apple-darwin' && '-march=armv8.5-a' || '' }}
- CXXFLAGS: ${{ matrix.target == 'aarch64-apple-darwin' && '-march=armv8.5-a' || '' }}
+ CFLAGS: ${{ matrix.target == 'aarch64-apple-darwin' && '-mcpu=apple-m1' || '' }}
+ CXXFLAGS: ${{ matrix.target == 'aarch64-apple-darwin' && '-mcpu=apple-m1' || '' }}
# Optimize for build speed on Windows
CARGO_PROFILE_RELEASE_LTO: ${{ matrix.os_type == 'windows' && 'thin' || 'false' }}
CARGO_PROFILE_RELEASE_OPT_LEVEL: ${{ matrix.os_type == 'windows' && '2' || '3' }}
diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.yml
index ae2f508d8..dc02d507f 100644
--- a/.github/workflows/release-cli.yml
+++ b/.github/workflows/release-cli.yml
@@ -73,11 +73,12 @@ jobs:
export PKG_CONFIG_PATH="/usr/local/opt/ffmpeg/lib/pkgconfig:$PKG_CONFIG_PATH"
export PKG_CONFIG_ALLOW_CROSS=1
export RUSTFLAGS="-C link-arg=-Wl,-rpath,@executable_path/../lib -C link-arg=-Wl,-rpath,@loader_path/../lib"
- # Fix i8mm build error on GitHub runners - target armv8.5-a which doesn't include i8mm
+ # Fix i8mm build error - use apple-m1 target to ensure M1 compatibility
+ # M1 = armv8.4-a (no i8mm), M2+ = armv8.5-a+ (has i8mm)
# See: https://github.com/ggml-org/whisper.cpp/issues/3427
if [[ "${{ matrix.target }}" == "aarch64-apple-darwin" ]]; then
- export CFLAGS="-march=armv8.5-a"
- export CXXFLAGS="-march=armv8.5-a"
+ export CFLAGS="-mcpu=apple-m1"
+ export CXXFLAGS="-mcpu=apple-m1"
fi
cargo build --release --features metal --target ${{ matrix.target }}
diff --git a/rust-toolchain.toml b/rust-toolchain.toml
index 725f99f56..f19782d3c 100644
--- a/rust-toolchain.toml
+++ b/rust-toolchain.toml
@@ -1,3 +1,2 @@
[toolchain]
-channel = "stable"
-versioned = "1.84.0"
+channel = "1.92.0"