Skip to content

Commit

Permalink
refactor: create darwin universal
Browse files Browse the repository at this point in the history
Signed-off-by: thxCode <[email protected]>
  • Loading branch information
thxCode committed May 31, 2024
1 parent 17bc7a9 commit 4133969
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ gguf-parser:
-tags="netgo" \
-o $(SRCDIR)/.dist/gguf-parser-$$os-$$arch$$suffix; \
done; \
if [[ $$os == "darwin" ]]; then \
[[ -d "$(SRCDIR)/.sbin" ]] || mkdir -p "$(SRCDIR)/.sbin"; \
[[ -f "$(SRCDIR)/.sbin/lipo" ]] || \
GOBIN="$(SRCDIR)/.sbin" go install github.com/konoui/[email protected]; \
"$(SRCDIR)/.sbin/lipo" -create -output $(SRCDIR)/.dist/gguf-parser-darwin-universal $(SRCDIR)/.dist/gguf-parser-darwin-amd64 $(SRCDIR)/.dist/gguf-parser-darwin-arm64; \
fi;\
done

ci: deps generate test lint
Expand Down

0 comments on commit 4133969

Please sign in to comment.