Skip to content

Commit 8a83bdc

Browse files
Use alpine shell to load x86_64 and arm64 arch for RandomY lib (#30)
1 parent b9c84e3 commit 8a83bdc

File tree

7 files changed

+6
-5
lines changed

7 files changed

+6
-5
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ jobs:
77
config:
88
- {arch: x86_64, branch: latest-stable}
99
- {arch: aarch64, branch: latest-stable}
10-
- {arch: riscv64, branch: edge}
1110
runs-on: ubuntu-latest
1211
steps:
1312
- name: Checkout
@@ -21,7 +20,9 @@ jobs:
2120
shell: alpine.sh --root {0}
2221
run: apk add git cmake gcc g++ make go
2322
- name: Test
23+
shell: alpine.sh --root {0}
2424
run: go test -v
25+
2526
build-windows:
2627
runs-on: windows-latest
2728
steps:
@@ -30,9 +31,10 @@ jobs:
3031
- name: Setup
3132
uses: actions/setup-go@v4
3233
with:
33-
go-version: 1.21
34+
go-version: 1.23
3435
- name: Test
3536
run: go test -v
37+
3638
build-darwin:
3739
strategy:
3840
matrix:
@@ -46,12 +48,13 @@ jobs:
4648
- name: Setup
4749
uses: actions/setup-go@v4
4850
with:
49-
go-version: 1.21
51+
go-version: 1.23
5052
- name: Test
5153
run: |
5254
export GOARCH=${{ matrix.config.arch }}
5355
export GOOS=darwin
5456
go test -v
57+
5558
release:
5659
needs: [build-alpine, build-windows, build-darwin]
5760
runs-on: ubuntu-latest

build/darwin-arm64/librandomx.a

0 Bytes
Binary file not shown.

build/darwin-x86_64/librandomx.a

0 Bytes
Binary file not shown.

build/linux-aarch64/librandomx.a

-711 KB
Binary file not shown.

build/linux-arm64/librandomx.a

-7.86 KB
Binary file not shown.

build/linux-x86_64/librandomx.a

-8.61 KB
Binary file not shown.

randomy.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ package randomy
44
//#cgo LDFLAGS: -lrandomx -lstdc++
55
//#cgo linux,amd64 LDFLAGS:-L${SRCDIR}/build/linux-x86_64 -lm
66
//#cgo linux,arm64 LDFLAGS:-L${SRCDIR}/build/linux-arm64 -lm
7-
//#cgo linux,aarch64 LDFLAGS:-L${SRCDIR}/build/linux-aarch64 -lm
8-
//#cgo linux,riscv64 LDFLAGS:-L${SRCDIR}/build/linux-riscv64 -lm
97
//#cgo darwin,amd64 LDFLAGS:-L${SRCDIR}/build/darwin-x86_64 -lm
108
//#cgo darwin,arm64 LDFLAGS:-L${SRCDIR}/build/darwin-arm64 -lm
119
//#cgo windows,amd64 LDFLAGS:-L${SRCDIR}/build/windows-x86_64

0 commit comments

Comments
 (0)