git.iko.soy/typeable/pandoc
on master help sign in
windows rc: build 32- and 64-bit msi.
c1015abJohn MacFarlane
.github/workflows/release-candidate.yml+17−6
@@ -22,22 +22,33 @@ jobs:
22 windows:
22 windows:
23
23
24 runs-on: windows-latest
24 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"
25
36
26 steps:
37 steps:
27 - uses: actions/checkout@v1
38 - uses: actions/checkout@v1
28 - name: Install stack
39 - name: Install stack
29 shell: cmd
40 shell: cmd
30 run: |
41 run: |
31− choco install haskell-stack
42+ choco install haskell-stack ${{ matrix.choco_opts }}
32 - name: Install dependencies
43 - name: Install dependencies
33 run: |
44 run: |
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
38 run: |
49 run: |
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:
54 )
65 )
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
60 cd ..
71 cd ..
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
64 with:
75 with:
65 name: windows-release-candidate
76 name: windows-release-candidate