Skip to content

Commit

Permalink
macOS x64 builder
Browse files Browse the repository at this point in the history
  • Loading branch information
battlmonstr committed Dec 4, 2023
1 parent d45eda4 commit 61782fa
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ci/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 9 additions & 0 deletions link_macos_x64.go
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 61782fa

Please sign in to comment.