Skip to content

Commit ea5ffaa

Browse files
committed
fixup: Add ffi jobs for nix
1 parent 6dedb74 commit ea5ffaa

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,24 @@ jobs:
244244
# cgocheck2 is expensive but provides complete pointer checks
245245
run: GOEXPERIMENT=cgocheck2 TEST_FIREWOOD_HASH_MODE=firewood go test ./...
246246

247+
ffi-nix:
248+
needs: build
249+
runs-on: ${{ matrix.os }}
250+
strategy:
251+
matrix:
252+
os: [ubuntu-latest, macos-latest]
253+
steps:
254+
- uses: actions/checkout@v4
255+
- uses: DeterminateSystems/nix-installer-action@786fff0690178f1234e4e1fe9b536e94f5433196 #v20
256+
- uses: DeterminateSystems/magic-nix-cache-action@565684385bcd71bad329742eefe8d12f2e765b39 #v13
257+
- name: Build Firewood FFI
258+
working-directory: ffi
259+
run: nix build .#firewood-ffi
260+
- name: Test Go FFI bindings
261+
working-directory: ffi
262+
# cgocheck2 is expensive but provides complete pointer checks
263+
run: nix develop --command env GOEXPERIMENT=cgocheck2 TEST_FIREWOOD_HASH_MODE=firewood go test ./... -v
264+
247265
firewood-ethhash-differential-fuzz:
248266
needs: build
249267
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)