Skip to content

Commit b63333c

Browse files
committed
Test IDN with NLS on GH
1 parent 692a623 commit b63333c

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/windows.yml

+36
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,42 @@ jobs:
3636
with:
3737
name: msmtp-libressl
3838
path: D:\a\msmtp\tmp\
39+
nls:
40+
runs-on: windows-latest
41+
defaults:
42+
run:
43+
shell: msys2 {0}
44+
steps:
45+
- name: Check out repository code
46+
uses: actions/checkout@v4
47+
- name: Install build dependencies
48+
uses: msys2/setup-msys2@v2
49+
with:
50+
msystem: UCRT64
51+
update: true
52+
install: >-
53+
mingw-w64-ucrt-x86_64-gcc
54+
pkgconf
55+
automake
56+
autoconf
57+
make
58+
texinfo
59+
- name: Build
60+
run: |
61+
autoreconf -i
62+
# The only function from libwinpthread is clock_gettime()
63+
./configure --with-tls=sspi LDFLAGS=-Wl,-Bstatic,-lwinpthread
64+
make
65+
- name: Set locale
66+
shell: pwsh
67+
run: |
68+
Set-WinSystemLocale -SystemLocale ru-RU
69+
- name: Test IDN
70+
continue-on-error: true
71+
run: |
72+
src/msmtp --debug --serverinfo --tls --host=mx3.почта.рус --port=1234 > output.log 2>&1 || true
73+
cat output.log | iconv -f cp1251 -t utf-8
74+
grep -q 'connection refused' output.log && echo 🎉 The host was found successfully but the connection was refused.
3975
native:
4076
runs-on: windows-latest
4177
defaults:

0 commit comments

Comments
 (0)