Skip to content

Commit 4965d57

Browse files
authored
darwin arm64 support (#25)
1 parent baa9f91 commit 4965d57

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/checkout@v1
2626
- name: Bump version
2727
id: version_bump
28-
uses: anothrNick/github-tag-action@1.13.0
28+
uses: anothrNick/github-tag-action@1.38.0
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131
DEFAULT_BUMP: "patch"

build/darwin-arm64/librandomx.a

458 KB
Binary file not shown.

randomy.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package randomy
55
//#cgo linux,amd64 LDFLAGS:-L${SRCDIR}/build/linux-x86_64 -lm
66
//#cgo linux,arm64 LDFLAGS:-L${SRCDIR}/build/linux-arm64 -lm
77
//#cgo darwin,amd64 LDFLAGS:-L${SRCDIR}/build/darwin-x86_64 -lm
8+
//#cgo darwin,arm64 LDFLAGS:-L${SRCDIR}/build/darwin-arm64 -lm
89
//#cgo windows,amd64 LDFLAGS:-L${SRCDIR}/build/windows-x86_64
910
//#include <stdlib.h>
1011
//#include "randomy.h"
@@ -14,6 +15,7 @@ import (
1415
"runtime"
1516
"sync"
1617
"unsafe"
18+
1719
"golang.org/x/sys/cpu"
1820
)
1921

0 commit comments

Comments
 (0)