Skip to content

Commit 38d4e74

Browse files
committed
Fix #6809 Install NSIS 3.10 in Windows CI
1 parent 171a735 commit 38d4e74

1 file changed

Lines changed: 18 additions & 15 deletions

File tree

‎.github/workflows/integration-tests.yml‎

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,24 @@ jobs:
7272
~\AppData\Roaming\stack
7373
~\AppData\Local\Programs\stack
7474
key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('stack.yaml') }}-${{ matrix.cache-bust }}
75-
75+
- name: Install NSIS 3.10 on Windows
76+
if: startsWith(runner.os, 'Windows')
77+
uses: repolevedavaj/install-nsis@v1.0.3
78+
with:
79+
nsis-version: '3.10'
80+
# Upgrades to a 'large strings' build of NSIS 3.10 tool. See
81+
# https://nsis.sourceforge.io/Special_Builds.
82+
- name: Upgrade NSIS 3.10 on Windows
83+
shell: bash
84+
run: |
85+
# wget is not available but the Stack-supplied MSYS2 will provide it
86+
stack exec -- wget -O nsis-3.10-strlen_8192.zip https://downloads.sourceforge.net/nsis/NSIS%203/3.10/nsis-3.10-strlen_8192.zip
87+
7z x -aoa -o"/c/Program Files (x86)/NSIS" nsis-3.10-strlen_8192.zip
88+
# Clean up
89+
rm nsis-3.10-strlen_8192.zip
90+
makensis -VERSION && echo
91+
# Should include defined symbol NSIS_MAX_STRLEN=8192
92+
makensis -HDRINFO
7693
- name: Install deps and run checks
7794
shell: bash
7895
run: |
@@ -132,20 +149,6 @@ jobs:
132149
EOF
133150
fi
134151
135-
# Updates NSIS 3.10 to a 'large strings' build of the same tool. See
136-
# https://nsis.sourceforge.io/Special_Builds.
137-
if [[ "${{ matrix.os }}" == "windows-latest" ]]
138-
then
139-
# wget is not available but the Stack-supplied MSYS2 will provide it
140-
stack exec -- wget -O nsis-3.10-strlen_8192.zip https://downloads.sourceforge.net/nsis/NSIS%203/3.10/nsis-3.10-strlen_8192.zip
141-
7z x -aoa -o"/c/Program Files (x86)/NSIS" nsis-3.10-strlen_8192.zip
142-
# Clean up
143-
rm nsis-3.10-strlen_8192.zip
144-
makensis -VERSION && echo
145-
# Should include defined symbol NSIS_MAX_STRLEN=8192
146-
makensis -HDRINFO
147-
fi
148-
149152
# In case GHCup hooks have been created, remove them
150153
if [ -d $(stack path --stack-root)/hooks ]
151154
then

0 commit comments

Comments
 (0)