Skip to content

Commit 77a9b00

Browse files
running new targets and archs
1 parent d524c34 commit 77a9b00

File tree

9 files changed

+31
-7
lines changed

9 files changed

+31
-7
lines changed

.github/workflows/build.yml

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,48 @@
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]
7+
config:
8+
- {arch: aarch64, branch: latest-stable}
9+
- {arch: armv7, 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:
26+
strategy:
27+
matrix:
28+
platform: [ubuntu-latest, windows-latest, macos-latest]
929
runs-on: ${{matrix.platform}}
1030
steps:
1131
- name: Checkout
12-
uses: actions/checkout@v1
32+
uses: actions/checkout@v4
1333
- name: Setup
14-
uses: actions/setup-go@v1
34+
uses: actions/setup-go@v4
1535
with:
1636
go-version: 1.21
1737
- name: Test
1838
run: go test -v
1939
release:
20-
needs: test
40+
needs: [build-alpine, build]
2141
runs-on: ubuntu-latest
2242
if: github.ref == 'refs/heads/master'
2343
steps:
2444
- name: Checkout
25-
uses: actions/checkout@v1
45+
uses: actions/checkout@v4
2646
- name: Bump version
2747
id: version_bump
2848
uses: anothrNick/github-tag-action@v1

build/darwin-arm64/librandomx.a

6.49 KB
Binary file not shown.

build/darwin-x86_64/librandomx.a

9.65 KB
Binary file not shown.

build/linux-aarch64/librandomx.a

711 KB
Binary file not shown.

build/linux-armv7/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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@ 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
9+
//#cgo linux,armv7 LDFLAGS:-L${SRCDIR}/build/linux-armv7 -lm
710
//#cgo darwin,amd64 LDFLAGS:-L${SRCDIR}/build/darwin-x86_64 -lm
811
//#cgo darwin,arm64 LDFLAGS:-L${SRCDIR}/build/darwin-arm64 -lm
912
//#cgo windows,amd64 LDFLAGS:-L${SRCDIR}/build/windows-x86_64
1013
//#include <stdlib.h>
1114
//#include "randomy.h"
15+
darwin-arm64 darwin-x86_64 linux-aarch64 linux-arm64 linux-armv7 linux-riscv64 linux-x86_64 windows-x86_64
1216
import "C"
1317
import (
1418
"errors"

0 commit comments

Comments
 (0)