Skip to content

Commit d6db82b

Browse files
committed
fix: CI typo, Rust lint, NaN preservation, C++ includes, Go tests
Closes #28 — replace goto-bus/setup-zig with mlugg/setup-zig in both test-bindings.yml and release.yml. Closes #35 — add #![allow(non_camel_case_types)] to goldenfloat-sys lib.rs for FFI-style type names. Closes #38 — GF16.fromF32 now maps NaN to exp=0x3F,mant=1 (not inf). GF16.toF32 returns std.math.nan when exp=0x3F and mant!=0. Closes #36 — add cpp/include to CMakeLists include_directories so <goldenfloat/gf16.hpp> resolves. Closes #37 — remove import "C" from gf16_test.go (Go forbids cgo in test files). Rewrite tests as exported Test* functions using the Go wrapper API from gf16.go.
1 parent 71037e8 commit d6db82b

5 files changed

Lines changed: 173 additions & 395 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
uses: actions/checkout@v4
4141

4242
- name: Setup Zig
43-
uses: goto-bus-stop/setup-zig@v2
43+
uses: mlugg/setup-zig@v2
4444
with:
4545
version: 0.15.0
4646

.github/workflows/test-bindings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
uses: actions/checkout@v4
3232

3333
- name: Install Zig
34-
uses: goto-bus/setup-zig@v2
34+
uses: mlugg/setup-zig@v2
3535
with:
3636
version: 0.15.2
3737

0 commit comments

Comments
 (0)