Skip to content

Commit 5b30e66

Browse files
committed
ci: Upload failed MacVim tests artifacts, misc improvements
Add new step to upload MacVim test results when we have failed tests. The xcresult folder can be opened in Xcode for inspection to help understand what went wrong. Also, fix the ordering so failed Vim GUI test artifacts can be uploaded as well. When configuring Vim, be explicit to not build with sodium/gettext for the non-publish builds. This makes sure that even if the CI environment somehow has them installed by default, we won't use them by mistake. Those installed packages would be built for a different OS target anyway and throw out warnings (the ones we bundle with MacVim are custom built to target the proper OS versions).
1 parent a6d07ee commit 5b30e66

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This is a clone of test_artifacts for MacVim-specific files
2+
name: 'test_macvim_artifacts'
3+
description: "Upload failed MacVim test artifacts"
4+
runs:
5+
using: "composite"
6+
steps:
7+
- name: Upload failed tests
8+
uses: actions/upload-artifact@v4
9+
with:
10+
# Name of the artifact to upload.
11+
name: ${{ github.workflow }}-${{ github.job }}-${{ join(matrix.*, '-') }}-failed-macvim-tests
12+
13+
# A file, directory or wildcard pattern that describes what
14+
# to upload.
15+
path: |
16+
/Users/runner/Library/Developer/Xcode/DerivedData/MacVim-*/Logs/Test/*.xcresult
17+
# The desired behavior if no files are found using the
18+
# provided path.
19+
if-no-files-found: ignore
20+
21+
# Duration after which artifact will expire in days. 0 means
22+
# using repository settings.
23+
retention-days: 0
24+
25+
# If true, an artifact with a matching name will be deleted
26+
overwrite: true

.github/workflows/ci-macvim.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ jobs:
207207
else
208208
CONFOPT+=(
209209
--disable-sparkle # Disable Sparkle for testing that this flag builds and works
210+
--enable-nls=no --enable-libsodium=no # Disable gettext and libsodium unless we built them ourselves for publish
210211
)
211212
fi
212213
if ${{ matrix.legacy == true }}; then
@@ -354,6 +355,10 @@ jobs:
354355
run: |
355356
make ${MAKE_BUILD_ARGS} -C src macvim-tests
356357
358+
- name: Upload failed MacVim test results
359+
if: ${{ !cancelled() && failure() }}
360+
uses: ./.github/actions/test_macvim_artifacts
361+
357362
- name: Build Vim test binaries
358363
run: |
359364
# Build the unit test binaries first. With link-time-optimization they take some time to link. Running them

0 commit comments

Comments
 (0)