Skip to content

Commit a4c5a88

Browse files
committed
WIP. Fix macOS dynamic library loading for tests
1 parent d98d7a7 commit a4c5a88

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,12 @@ jobs:
238238
if: runner.os != 'Windows'
239239
run: make
240240

241+
- name: Set library path for macOS
242+
if: runner.os == 'macOS'
243+
run: |
244+
echo "DYLD_LIBRARY_PATH=${{ github.workspace }}/lib:$DYLD_LIBRARY_PATH" >> $GITHUB_ENV
245+
echo "Set DYLD_LIBRARY_PATH to ${{ github.workspace }}/lib"
246+
241247
- name: Test (Unix)
242248
if: runner.os != 'Windows'
243249
run: NO_INTERACTION=1 make test

.kiro/specs/test-matrix-workflow/tasks.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,10 @@
8080
- Ensure workflow still triggers on push, pull_request, workflow_dispatch, and workflow_call
8181
- Confirm no changes needed to trigger configuration
8282
- _Requirements: 5.5_
83+
84+
- [x] 13. Fix macOS dynamic library loading for tests
85+
- Add step before Unix test step to set DYLD_LIBRARY_PATH on macOS
86+
- Set DYLD_LIBRARY_PATH to point to the lib directory containing libcrc_fast.dylib
87+
- Use conditional to run only on macOS (if: runner.os == 'macOS')
88+
- Export environment variable for subsequent test step
89+
- _Requirements: 1.5, 8.3_

0 commit comments

Comments
 (0)