From 1f75ef60b6fe2b534bbe6f6431f097a5a9ed47a2 Mon Sep 17 00:00:00 2001 From: debpalash Date: Fri, 26 Jun 2026 00:16:23 +0530 Subject: [PATCH] polish: memxt logo + cross-compile Intel macOS + version bump MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - assets/logo.svg: new mark for memxt — stacked memory layers (the data model) sliced by a speed bolt, clean `memxt` wordmark. Replaces the old "memory palace" temple + FAST-MEMPALACE text. - release.yml: build darwin-x86_64 by cross-compiling on the arm runner (-DCMAKE_OSX_ARCHITECTURES=x86_64 + zig -Dtarget=x86_64-macos) instead of the deprecated/queue-starved macos-13 runners; skip its runtime smoke test since the x86 binary can't run on the arm host. Future releases include Intel Mac. - build.zig.zon: version 0.1.0 -> 0.2.1 to match the release. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/release.yml | 21 ++++++++++++-- assets/logo.svg | 53 +++++++++++++++++------------------ build.zig.zon | 2 +- 3 files changed, 46 insertions(+), 30 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 234d62d..ff4f7b8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,8 +18,14 @@ jobs: include: - target: darwin-aarch64 runner: macos-latest + # Intel macOS: cross-compile on the plentiful arm runner (macos-13 + # Intel runners are deprecated and queue-starved). The binary can't be + # run on the arm host, so its runtime smoke test is skipped. - target: darwin-x86_64 - runner: macos-13 + runner: macos-latest + osx_arch: x86_64 + zig_target: x86_64-macos + skip_run: "true" - target: linux-x86_64 runner: ubuntu-latest - target: linux-aarch64 @@ -84,10 +90,14 @@ jobs: - name: Build llama.cpp static libraries if: steps.cache_llama.outputs.cache-hit != 'true' run: | + # Cross-compile flag for Intel macOS built on an arm runner. + OSX_ARCH_FLAG="" + if [ -n "${{ matrix.osx_arch }}" ]; then OSX_ARCH_FLAG="-DCMAKE_OSX_ARCHITECTURES=${{ matrix.osx_arch }}"; fi if [ "$(uname -s)" = "Darwin" ]; then cmake -S lib/llama.cpp -B lib/llama.cpp/build \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_SHARED_LIBS=OFF \ + $OSX_ARCH_FLAG \ -DGGML_METAL=ON \ -DGGML_BLAS=ON \ -DLLAMA_BUILD_TESTS=OFF \ @@ -110,9 +120,16 @@ jobs: cmake --build lib/llama.cpp/build -j - name: Build release - run: zig build --release=fast + run: | + if [ -n "${{ matrix.zig_target }}" ]; then + zig build --release=fast -Dtarget=${{ matrix.zig_target }} + else + zig build --release=fast + fi - name: Smoke test (incl. real embeddings) + # Skip for a cross-compiled binary that can't run on this host. + if: ${{ matrix.skip_run != 'true' }} run: | set -eux ./zig-out/bin/memxt init diff --git a/assets/logo.svg b/assets/logo.svg index aefb753..20cd2f9 100644 --- a/assets/logo.svg +++ b/assets/logo.svg @@ -1,34 +1,15 @@ - - - - - - - - - - - - - - - - - - - - - - + + + - - - + + + @@ -36,6 +17,24 @@ - - FAST-MEMPALACE + + + + + + + + + + + + + + + + + + memxt diff --git a/build.zig.zon b/build.zig.zon index eeafe99..ae39e0f 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,6 +1,6 @@ .{ .name = .memxt, - .version = "0.1.0", + .version = "0.2.1", .fingerprint = 0x5bf95d78bca15787, .minimum_zig_version = "0.16.0", .paths = .{