From 61782fa8d0e0fd9605e5c0a3783f4527fe36d975 Mon Sep 17 00:00:00 2001 From: battlmonstr Date: Mon, 4 Dec 2023 11:19:04 +0100 Subject: [PATCH] macOS x64 builder --- .circleci/config.yml | 8 ++++++++ ci/release.sh | 2 +- link_macos_x64.go | 9 +++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 link_macos_x64.go diff --git a/.circleci/config.yml b/.circleci/config.yml index f584f86..20ece1d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -32,6 +32,14 @@ workflows: version: 2 release: jobs: + - release: + name: macos-x64 + executor: macos + resource_class: macos.x86.medium.gen2 + make_jobs: 2 + filters: + tags: { only: /^release\/.+-base$/ } + branches: { ignore: /.*/ } - release: name: macos-arm64 executor: macos diff --git a/ci/release.sh b/ci/release.sh index b4036dd..f7e812e 100755 --- a/ci/release.sh +++ b/ci/release.sh @@ -6,7 +6,7 @@ set -o pipefail SRC_GIT_URL="https://github.com/erigontech/silkworm.git" TARGET="silkworm_capi" -FINAL_LIB_COUNT=2 +FINAL_LIB_COUNT=3 function release_version { version="$1" diff --git a/link_macos_x64.go b/link_macos_x64.go new file mode 100644 index 0000000..50f7669 --- /dev/null +++ b/link_macos_x64.go @@ -0,0 +1,9 @@ +//go:build !nosilkworm && darwin && amd64 + +package silkworm_go + +// #cgo LDFLAGS: -lsilkworm_capi +// #cgo LDFLAGS: -L${SRCDIR}/lib/macos_x64 +// #cgo LDFLAGS: -Wl,-rpath ${SRCDIR}/lib/macos_x64 +// #cgo LDFLAGS: -mmacosx-version-min=13.3 +import "C"