Skip to content

Commit

Permalink
Test IDN with NLS on GH
Browse files Browse the repository at this point in the history
  • Loading branch information
mlt committed Sep 23, 2024
1 parent 692a623 commit b63333c
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,42 @@ jobs:
with:
name: msmtp-libressl
path: D:\a\msmtp\tmp\
nls:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install build dependencies
uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: true
install: >-
mingw-w64-ucrt-x86_64-gcc
pkgconf
automake
autoconf
make
texinfo
- name: Build
run: |
autoreconf -i
# The only function from libwinpthread is clock_gettime()
./configure --with-tls=sspi LDFLAGS=-Wl,-Bstatic,-lwinpthread
make
- name: Set locale
shell: pwsh
run: |
Set-WinSystemLocale -SystemLocale ru-RU
- name: Test IDN
continue-on-error: true
run: |
src/msmtp --debug --serverinfo --tls --host=mx3.почта.рус --port=1234 > output.log 2>&1 || true
cat output.log | iconv -f cp1251 -t utf-8
grep -q 'connection refused' output.log && echo 🎉 The host was found successfully but the connection was refused.
native:
runs-on: windows-latest
defaults:
Expand Down

0 comments on commit b63333c

Please sign in to comment.