aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-10-04 22:35:40 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-10-04 22:43:39 -0700
commitc1015abb4d53d53c8accd9e9b5d49ab4eb321ac4 (patch)
treee02c4387fb5e95f42f69f22ba774eadd95725609
parentdd503df20a56c49ca69ba844510fc081e17f83f3 (diff)
downloadpandoc-c1015abb4d53d53c8accd9e9b5d49ab4eb321ac4.tar.gz
windows rc: build 32- and 64-bit msi.
-rw-r--r--.github/workflows/release-candidate.yml23
1 files changed, 17 insertions, 6 deletions
diff --git a/.github/workflows/release-candidate.yml b/.github/workflows/release-candidate.yml
index 2f7412452..a1e99e5d7 100644
--- a/.github/workflows/release-candidate.yml
+++ b/.github/workflows/release-candidate.yml
@@ -22,22 +22,33 @@ jobs:
windows:
runs-on: windows-latest
+ strategy:
+ fail-fast: true
+ matrix:
+ - osarch: "windows-x86_64"
+ arch: "x86"
+ choco_opts: "--x86"
+ stack_opts: ""
+ - osarch: "windows-i386"
+ arch: "x64"
+ choco_opts: ""
+ stack_opts: "--flag hslua:lua_32bits"
steps:
- uses: actions/checkout@v1
- name: Install stack
shell: cmd
run: |
- choco install haskell-stack
+ choco install haskell-stack ${{ matrix.choco_opts }}
- name: Install dependencies
run: |
stack update
- stack build --dependencies-only pandoc pandoc-citeproc
+ stack build ${{ matrix.stack_opts }} --dependencies-only pandoc pandoc-citeproc
- name: Build artifacts
shell: cmd
run: |
for /f %%a in ('powershell -Command "Get-Date -format yyyy-MM-dd"') do set THEDATE=%%a
- stack build pandoc pandoc-citeproc
+ stack build ${{ matrix.stack_opts }}pandoc pandoc-citeproc
forfiles /P .\.stack-work\install /M pandoc*.exe /S /C "cmd /C copy @path windows"
stack exec pandoc -- -s --toc MANUAL.txt -o windows\MANUAL.html
stack exec pandoc -- -s COPYING.md -t rtf -o windows\COPYING.rtf
@@ -54,12 +65,12 @@ jobs:
)
echo Detected version %VERSION%
echo Creating msi...
- candle -dVERSION=%VERSION% -dBINPATH=%BINPATH% *.wxs -out wixobj\
+ candle -arch ${{ matrix.arch }} -dVERSION=%VERSION% -dBINPATH=%BINPATH% *.wxs -out wixobj\
if %errorlevel% neq 0 exit /b %errorlevel%
- light -sw1076 -ext WixUIExtension -ext WixUtilExtension -cultures:en-us -loc Pandoc-en-us.wxl -out pandoc-%VERSION%-windows.msi wixobj\*.wixobj
+ light -sw1076 -ext WixUIExtension -ext WixUtilExtension -cultures:en-us -loc Pandoc-en-us.wxl -out pandoc-%VERSION%-${{ matrix.osarch }}.msi wixobj\*.wixobj
cd ..
mkdir windows-release-candidate
- copy windows\pandoc-%VERSION%-windows.msi windows-release-candidate
+ copy windows\pandoc-%VERSION%-${{ matrix.osarch }}.msi windows-release-candidate
- uses: actions/upload-artifact@master
with:
name: windows-release-candidate