|
72 | 72 | ~\AppData\Roaming\stack |
73 | 73 | ~\AppData\Local\Programs\stack |
74 | 74 | 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/[email protected] |
| 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 | + if: startsWith(runner.os, 'Windows') |
| 84 | + shell: bash |
| 85 | + run: | |
| 86 | + # wget is not available but the Stack-supplied MSYS2 will provide it |
| 87 | + 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 |
| 88 | + 7z x -aoa -o"/c/Program Files (x86)/NSIS" nsis-3.10-strlen_8192.zip |
| 89 | + # Clean up |
| 90 | + rm nsis-3.10-strlen_8192.zip |
| 91 | + makensis -VERSION && echo |
| 92 | + # Should include defined symbol NSIS_MAX_STRLEN=8192 |
| 93 | + makensis -HDRINFO |
76 | 94 | - name: Install deps and run checks |
77 | 95 | shell: bash |
78 | 96 | run: | |
@@ -132,20 +150,6 @@ jobs: |
132 | 150 | EOF |
133 | 151 | fi |
134 | 152 |
|
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 | | -
|
149 | 153 | # In case GHCup hooks have been created, remove them |
150 | 154 | if [ -d $(stack path --stack-root)/hooks ] |
151 | 155 | then |
|
0 commit comments