Skip to content

Commit 5026cbd

Browse files
authored
perf(CI): use unity builds to speed up Windows CI (XRPLF#4780)
The unity build speeds up compilation by bundling multiple source files into one larger file. This reduces Windows CI build time by up to 50%. As described in XRPLF#4596, the automatic Windows builds take a very long time. Unity builds are significantly faster - currently about 45 min, much closer to the typical MacOS (35-40 minutes) and nix (~30 minutes) run times. This is intended as a stopgap solution until a more resourced and reliable runner is available. No C++ code was changed. This only affects CI.
1 parent 5af9dc5 commit 5026cbd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
generator: '${{ matrix.generator }}'
9090
configuration: ${{ matrix.configuration }}
9191
# Hard code for now. Move to the matrix if varied options are needed
92-
cmake-args: '-Dassert=ON -Dreporting=OFF -Dunity=OFF'
92+
cmake-args: '-Dassert=ON -Dreporting=OFF -Dunity=ON'
9393
- name: test (permitted to silently fail)
9494
shell: bash
9595
# Github runners are resource limited, which causes unit tests to fail

0 commit comments

Comments
 (0)