From e0a5248bf30e82a32c01286314c6963dcc2c1a34 Mon Sep 17 00:00:00 2001 From: "Christopher L. Crutchfield" Date: Fri, 15 Nov 2024 16:40:01 -0800 Subject: [PATCH] feat: create universal binary for macos --- .github/workflows/rust.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 16064f7..702d8ab 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -58,5 +58,10 @@ jobs: run: | cargo build --verbose --release --target=aarch64-apple-darwin cargo build --verbose --release --target=x86_64-apple-darwin + - name: Build Universal + run: | + mkdir -p ./target/universal-apple-darwin/release/ + lipo -create -output ./target/universal-apple-darwin/release/git-lfs-synology ./target/x86_64-apple-darwin/release/git-lfs-synology ./target/aarch64-apple-darwin/release/git-lfs-synology - name: ls - run: find . -name git-lfs-synology \ No newline at end of file + run: | + find . -name git-lfs-synology