Skip to content

Commit b9c84e3

Browse files
Use the latest RandomY based on RandomX 1.2.1 (#29)
1 parent d524c34 commit b9c84e3

File tree

8 files changed

+46
-8
lines changed

8 files changed

+46
-8
lines changed

.github/workflows/build.yml

Lines changed: 44 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,64 @@
11
name: go-randomy build
22
on: [push]
33
jobs:
4-
test:
5-
name: Build
4+
build-alpine:
65
strategy:
76
matrix:
8-
platform: [ubuntu-latest, windows-latest, raspbian-private, macos-latest]
9-
runs-on: ${{matrix.platform}}
7+
config:
8+
- {arch: x86_64, branch: latest-stable}
9+
- {arch: aarch64, branch: latest-stable}
10+
- {arch: riscv64, branch: edge}
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- name: Setup Alpine Linux
16+
uses: jirutka/setup-alpine@v1
17+
with:
18+
arch: ${{ matrix.config.arch }}
19+
branch: ${{ matrix.config.branch }}
20+
- name: Install deps
21+
shell: alpine.sh --root {0}
22+
run: apk add git cmake gcc g++ make go
23+
- name: Test
24+
run: go test -v
25+
build-windows:
26+
runs-on: windows-latest
1027
steps:
1128
- name: Checkout
12-
uses: actions/checkout@v1
29+
uses: actions/checkout@v4
1330
- name: Setup
14-
uses: actions/setup-go@v1
31+
uses: actions/setup-go@v4
1532
with:
1633
go-version: 1.21
1734
- name: Test
1835
run: go test -v
36+
build-darwin:
37+
strategy:
38+
matrix:
39+
config:
40+
- {os: macos-latest, arch: arm64}
41+
- {os: macos-13, arch: amd64}
42+
runs-on: ${{ matrix.config.os }}
43+
steps:
44+
- name: Checkout
45+
uses: actions/checkout@v4
46+
- name: Setup
47+
uses: actions/setup-go@v4
48+
with:
49+
go-version: 1.21
50+
- name: Test
51+
run: |
52+
export GOARCH=${{ matrix.config.arch }}
53+
export GOOS=darwin
54+
go test -v
1955
release:
20-
needs: test
56+
needs: [build-alpine, build-windows, build-darwin]
2157
runs-on: ubuntu-latest
2258
if: github.ref == 'refs/heads/master'
2359
steps:
2460
- name: Checkout
25-
uses: actions/checkout@v1
61+
uses: actions/checkout@v4
2662
- name: Bump version
2763
id: version_bump
2864
uses: anothrNick/github-tag-action@v1

build/darwin-arm64/librandomx.a

6.49 KB
Binary file not shown.

build/darwin-x86_64/librandomx.a

1.85 KB
Binary file not shown.

build/linux-aarch64/librandomx.a

711 KB
Binary file not shown.

build/linux-riscv64/librandomx.a

711 KB
Binary file not shown.

build/linux-x86_64/librandomx.a

-26 KB
Binary file not shown.

build/windows-x86_64/librandomx.a

-16.5 KB
Binary file not shown.

randomy.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ 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
79
//#cgo darwin,amd64 LDFLAGS:-L${SRCDIR}/build/darwin-x86_64 -lm
810
//#cgo darwin,arm64 LDFLAGS:-L${SRCDIR}/build/darwin-arm64 -lm
911
//#cgo windows,amd64 LDFLAGS:-L${SRCDIR}/build/windows-x86_64

0 commit comments

Comments
 (0)