Skip to content

Commit a55ee58

Browse files
committed
Try adding other platforms
1 parent f916d1c commit a55ee58

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+14
-5
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,19 @@ on:
1010

1111
jobs:
1212
test:
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, windows-latest, macos-latest, ubuntu-24.04-arm]
1316
name: test
14-
runs-on: ubuntu-latest
17+
runs-on: ${{ matrix.os }}
1518
steps:
1619
- name: Checkout repository
1720
uses: actions/checkout@v5
1821

22+
- name: Set up Go
23+
uses: actions/setup-go@v6
24+
with:
25+
go-version: '>=1.25.2'
26+
1927
- name: test
2028
run: go test .

README.md

Lines changed: 1 addition & 3 deletions

context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package nickel
44
#cgo CFLAGS: -I./include
55
66
#include <nickel_lang.h>
7-
#include <malloc.h>
7+
#include <stdlib.h>
88
99
extern uintptr_t traceCallback(void*, uint8_t*, uintptr_t);
1010

go.sum

Whitespace-only changes.

lib/darwin_arm64/libnickel_lang.a

16.3 MB
Binary file not shown.

lib/linux_amd64/libnickel_lang.a

-296 Bytes
Binary file not shown.

lib/linux_arm64/libnickel_lang.a

14.8 MB
Binary file not shown.

lib/windows_amd64/libnickel_lang.a

16.9 MB
Binary file not shown.

nickel.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ package nickel
22

33
/*
44
#cgo linux,amd64 LDFLAGS: ${SRCDIR}/lib/linux_amd64/libnickel_lang.a -lm
5+
#cgo linux,arm64 LDFLAGS: ${SRCDIR}/lib/linux_arm64/libnickel_lang.a -lm
6+
#cgo darwin,arm64 LDFLAGS: ${SRCDIR}/lib/darwin_arm64/libnickel_lang.a -lm
7+
#cgo windows,amd64 LDFLAGS: ${SRCDIR}/lib/windows_amd64/libnickel_lang.a -lm -lntdll
58
69
#cgo CFLAGS: -I${SRCDIR}/include
710

tmp/d067f95df2315da6-absvdi2.o

4.54 KB
Binary file not shown.

0 commit comments

Comments
 (0)