Skip to content

Commit 1faaa9b

Browse files
committed
ci: Build MacVim test binaries separately from running tests
Separate out the building step into a separate group. This makes the tests output more concise to read when a test has failed and we want to look at the logs.
1 parent 9c0d779 commit 1faaa9b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/macvim-buildtest.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,10 @@ jobs:
348348
id: test_macvim
349349
timeout-minutes: 10
350350
run: |
351+
echo '::group::Build MacVim test binaries'
352+
# Build test binaries in a separate step to allow grouping in the CI output to make the output more concise.
353+
make ${MAKE_BUILD_ARGS} -C src macvim-tests-binaries
354+
echo '::endgroup::'
351355
make ${MAKE_BUILD_ARGS} -C src macvim-tests
352356
353357
- name: Upload failed MacVim test results

src/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3753,7 +3753,7 @@ Makefile:
37533753

37543754
##############################################################################
37553755
### MacVim GUI
3756-
.PHONY: macvim macvim-dmg macvim-dmg-legacy macvimclean macvim-signed macvim-signed-adhoc macvim-dmg-release macvim-dmg-release-legacy macvim-install-runtime macvim-xcodeproj-compat
3756+
.PHONY: macvim macvim-dmg macvim-dmg-legacy macvimclean macvim-tests-binaries macvim-tests macvim-signed macvim-signed-adhoc macvim-dmg-release macvim-dmg-release-legacy macvim-install-runtime macvim-xcodeproj-compat
37573757

37583758
RUNTIME_FOLDER_LIST = MacVim/auto/runtime_folder_list.xcfilelist
37593759

@@ -3777,6 +3777,9 @@ $(RUNTIME_FOLDER_LIST):
37773777
macvim: $(VIMTARGET) $(RUNTIME_FOLDER_LIST)
37783778
xcodebuild -project MacVim/MacVim.xcodeproj $(XCODEFLAGS)
37793779

3780+
macvim-tests-binaries:
3781+
xcodebuild build-for-testing -project MacVim/MacVim.xcodeproj -scheme MacVim $(XCODEFLAGS)
3782+
37803783
macvim-tests:
37813784
xcodebuild test -project MacVim/MacVim.xcodeproj -scheme MacVim $(XCODEFLAGS)
37823785

0 commit comments

Comments
 (0)