@@ -22,22 +22,33 @@ jobs:
24 runs-on: windows-latest
24 runs-on: windows-latest
28+ - osarch: "windows-x86_64"
32+ - osarch: "windows-i386"
35+ stack_opts: "--flag hslua:lua_32bits"
27 - uses: actions/checkout@v1
38 - uses: actions/checkout@v1
28 - name: Install stack
39 - name: Install stack
29 shell: cmd
40 shell: cmd
31− choco install haskell-stack
42+ choco install haskell-stack ${{ matrix.choco_opts }}
32 - name: Install dependencies
43 - name: Install dependencies
34 stack update
45 stack update
35− stack build --dependencies-only pandoc pandoc-citeproc
46+ stack build ${{ matrix.stack_opts }} --dependencies-only pandoc pandoc-citeproc
36 - name: Build artifacts
47 - name: Build artifacts
37 shell: cmd
48 shell: cmd
39 for /f %%a in ('powershell -Command "Get-Date -format yyyy-MM-dd"') do set THEDATE=%%a
50 for /f %%a in ('powershell -Command "Get-Date -format yyyy-MM-dd"') do set THEDATE=%%a
40− stack build pandoc pandoc-citeproc
51+ stack build ${{ matrix.stack_opts }}pandoc pandoc-citeproc
41 forfiles /P .\.stack-work\install /M pandoc*.exe /S /C "cmd /C copy @path windows"
52 forfiles /P .\.stack-work\install /M pandoc*.exe /S /C "cmd /C copy @path windows"
42 stack exec pandoc -- -s --toc MANUAL.txt -o windows\MANUAL.html
53 stack exec pandoc -- -s --toc MANUAL.txt -o windows\MANUAL.html
43 stack exec pandoc -- -s COPYING.md -t rtf -o windows\COPYING.rtf
54 stack exec pandoc -- -s COPYING.md -t rtf -o windows\COPYING.rtf
@@ -54,12 +65,12 @@ jobs:
55 echo Detected version %VERSION%
66 echo Detected version %VERSION%
56 echo Creating msi...
67 echo Creating msi...
57− candle -dVERSION=%VERSION% -dBINPATH=%BINPATH% *.wxs -out wixobj\
68+ candle -arch ${{ matrix.arch }} -dVERSION=%VERSION% -dBINPATH=%BINPATH% *.wxs -out wixobj\
58 if %errorlevel% neq 0 exit /b %errorlevel%
69 if %errorlevel% neq 0 exit /b %errorlevel%
59− light -sw1076 -ext WixUIExtension -ext WixUtilExtension -cultures:en-us -loc Pandoc-en-us.wxl -out pandoc-%VERSION%-windows.msi wixobj\*.wixobj
70+ light -sw1076 -ext WixUIExtension -ext WixUtilExtension -cultures:en-us -loc Pandoc-en-us.wxl -out pandoc-%VERSION%-${{ matrix.osarch }}.msi wixobj\*.wixobj
61 mkdir windows-release-candidate
72 mkdir windows-release-candidate
62− copy windows\pandoc-%VERSION%-windows.msi windows-release-candidate
73+ copy windows\pandoc-%VERSION%-${{ matrix.osarch }}.msi windows-release-candidate
63 - uses: actions/upload-artifact@master
74 - uses: actions/upload-artifact@master
65 name: windows-release-candidate
76 name: windows-release-candidate