Skip to content

Commit d7197e3

Browse files
committed
run windows on single thread
1 parent 2b97714 commit d7197e3

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/test-java-bindings-new.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,15 @@ jobs:
9898
- name: Make binaries executable
9999
if: runner.os != 'Windows'
100100
run: chmod +x target/${{ matrix.target }}/release/*
101-
101+
102+
# Windows has a weird heap allocation error when running tests
103+
# This happens because each test in fk20, will create commit and opening
104+
# keys. Its not clear as to why the tests are not freeing the heap allocations
105+
# on windows, but running the tests on a single thread, fixes it.
106+
- name: Run tests (Windows)
107+
if: runner.os == 'Windows'
108+
run: cargo test --target ${{ matrix.target }} -- --test-threads=1 --nocapture
109+
102110
- name: Run tests
103-
run: cargo test --target ${{ matrix.target }} -- --test-threads=1 --nocapture
111+
if: runner.os != 'Windows'
112+
run: cargo test --target ${{ matrix.target }}

0 commit comments

Comments
 (0)