Skip to content

Commit ec6d7e3

Browse files
committed
ci: enable testing on Windows
The path-type is set to "inherit" in order to use git.exe from the preinstalled "Git for Windows". There remains at least one problem regarding forming viable command lines to `git interpret-trailers` that prevent some tests from passing if the MSYS2 version of git is used with the test suite. This uses the recommended/modern universal C runtime (UCRT64) MSYS2 environment, but the legacy MINGW environment should also work.
1 parent cdfe4bc commit ec6d7e3

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,23 @@ jobs:
165165
- name: Build
166166
run: |
167167
cargo --locked build --all-features --profile release
168-
# - name: Setup MSYS2
169-
# uses: msys2/setup-msys2@v2
170-
# with:
171-
# install: base-devel git
172-
# - name: Test
173-
# shell: msys2 {0}
174-
# env:
175-
# STG_TEST_OPTS: "-v -i"
176-
# STG_PROFILE: "release"
177-
# run: |
178-
# timeout 900s make -C t test
168+
- name: Setup MSYS2
169+
uses: msys2/setup-msys2@v2
170+
with:
171+
msystem: UCRT64
172+
update: true
173+
install: diffutils make
174+
path-type: inherit
175+
- name: Test
176+
shell: msys2 {0}
177+
env:
178+
STG_PROVE_OPTS: "--jobs=2"
179+
STG_TEST_OPTS: "--verbose-log"
180+
STG_PROFILE: "release"
181+
run: |
182+
timeout 900s make -C t prove
183+
- name: Show Failures
184+
if: ${{ failure() }}
185+
shell: msys2 {0}
186+
run: |
187+
make -C t show-failure-results

0 commit comments

Comments
 (0)