git.iko.soy/typeable/pandoc
on master help sign in
windows rc: build 32- and 64-bit msi.
commitc1015abb4d53d53c8accd9e9b5d49ab4eb321ac4 authorJohn MacFarlane <jgm@berkeley.edu> dateFri 4 Oct 2019, 22:35 (7 years ago) parentdd503df
1 file changed+17−6
.github/workflows/release-candidate.yml+17−6
.github/workflows/release-candidate.yml+17−6
@@ -22,22 +22,33 @@ jobs:
2222 windows:
2323
2424 runs-on: windows-latest
25+ strategy:
26+ fail-fast: true
27+ matrix:
28+ - osarch: "windows-x86_64"
29+ arch: "x86"
30+ choco_opts: "--x86"
31+ stack_opts: ""
32+ - osarch: "windows-i386"
33+ arch: "x64"
34+ choco_opts: ""
35+ stack_opts: "--flag hslua:lua_32bits"
2536
2637 steps:
2738 - uses: actions/checkout@v1
2839 - name: Install stack
2940 shell: cmd
3041 run: |
31− choco install haskell-stack
42+ choco install haskell-stack ${{ matrix.choco_opts }}
3243 - name: Install dependencies
3344 run: |
3445 stack update
35− stack build --dependencies-only pandoc pandoc-citeproc
46+ stack build ${{ matrix.stack_opts }} --dependencies-only pandoc pandoc-citeproc
3647 - name: Build artifacts
3748 shell: cmd
3849 run: |
3950 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
4152 forfiles /P .\.stack-work\install /M pandoc*.exe /S /C "cmd /C copy @path windows"
4253 stack exec pandoc -- -s --toc MANUAL.txt -o windows\MANUAL.html
4354 stack exec pandoc -- -s COPYING.md -t rtf -o windows\COPYING.rtf
@@ -54,12 +65,12 @@ jobs:
5465 )
5566 echo Detected version %VERSION%
5667 echo Creating msi...
57− candle -dVERSION=%VERSION% -dBINPATH=%BINPATH% *.wxs -out wixobj\
68+ candle -arch ${{ matrix.arch }} -dVERSION=%VERSION% -dBINPATH=%BINPATH% *.wxs -out wixobj\
5869 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
6071 cd ..
6172 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
6374 - uses: actions/upload-artifact@master
6475 with:
6576 name: windows-release-candidate