git.iko.soy/typeable/pandoc
on master help sign in
Revert stack->cabal change in nightly.yml.
99f8923John MacFarlane
.github/workflows/nightly.yml+21−20
@@ -18,13 +18,15 @@ jobs:
18 cabal v2-build --dependencies-only all
18 cabal v2-build --dependencies-only all
19 - name: Build
19 - name: Build
20 run: |
20 run: |
21− cabal v2-install --install-method=copy --installdir=. all
21+ cabal v2-install all
22− strip pandoc
22+ strip $HOME/.cabal/bin/pandoc
23 - name: Install artifact
23 - name: Install artifact
24 run: |
24 run: |
25 export ARTIFACTS=nightly-linux/pandoc-nightly-linux-$(date +%Y-%m-%d)
25 export ARTIFACTS=nightly-linux/pandoc-nightly-linux-$(date +%Y-%m-%d)
26 mkdir -p ${ARTIFACTS}
26 mkdir -p ${ARTIFACTS}
27− cp pandoc ${ARTIFACTS}/pandoc-nightly-${GITHUB_SHA}
27+ cp $HOME/.cabal/bin/pandoc ${ARTIFACTS}/
28+ cp COPYRIGHT ${ARTIFACTS}/
29+ echo "Built from ${GITHUB_SHA}" > ${ARTIFACTS}/README.nightly.txt
28 - uses: actions/upload-artifact@master
30 - uses: actions/upload-artifact@master
29 with:
31 with:
30 name: nightly-linux
32 name: nightly-linux
@@ -38,18 +40,19 @@ jobs:
38 - uses: actions/checkout@v2
40 - uses: actions/checkout@v2
39 - name: Install dependencies
41 - name: Install dependencies
40 run: |
42 run: |
41− ghc --version
42− cabal --version
43− cabal v2-update
43+ stack update
44− cabal v2-build --dependencies-only all
44+ stack build --dependencies-only pandoc
45 - name: Build artifacts
45 - name: Build artifacts
46 shell: cmd
46 shell: cmd
47 run: |
47 run: |
48− cabal v2-install --install-method=copy --installdir=. all
49 for /f %%a in ('powershell -Command "Get-Date -format yyyy-MM-dd"') do set THEDATE=%%a
48 for /f %%a in ('powershell -Command "Get-Date -format yyyy-MM-dd"') do set THEDATE=%%a
50 set ARTIFACTS=%CD%\nightly-windows\pandoc-nightly-windows-%THEDATE%
49 set ARTIFACTS=%CD%\nightly-windows\pandoc-nightly-windows-%THEDATE%
51 mkdir %ARTIFACTS%
50 mkdir %ARTIFACTS%
52− copy pandoc.exe %ARTIFACTS%\pandoc-nightly-%GITHUB_SHA%.exe
51+ stack build pandoc
52+ forfiles /P .\.stack-work\install /M pandoc*.exe /S /C "cmd /C copy @path %%ARTIFACTS%%"
53+ copy COPYRIGHT %ARTIFACTS%
54+ ren %ARTIFACTS%\COPYRIGHT COPYRIGHT.txt
55+ echo Built from %GITHUB_SHA% > %ARTIFACTS%\README.nightly.txt
53 - uses: actions/upload-artifact@master
56 - uses: actions/upload-artifact@master
54 with:
57 with:
55 name: nightly-windows
58 name: nightly-windows
@@ -63,19 +66,17 @@ jobs:
63 - uses: actions/checkout@v2
66 - uses: actions/checkout@v2
64 - name: Install dependencies
67 - name: Install dependencies
65 run: |
68 run: |
66− ghc --version
67− cabal --version
68− cabal v2-update
69+ stack update
69− cabal v2-build --dependencies-only all
70+ stack build --dependencies-only pandoc
70− - name: Build
71+ - name: Build artifacts
71− run: |
72− cabal v2-install --install-method=copy --installdir=. all
73− strip pandoc
74− - name: Install artifact
75 run: |
72 run: |
76− export ARTIFACTS=nightly-linux/pandoc-nightly-linux-$(date +%Y-%m-%d)
73+ export ARTIFACTS=nightly-macos/pandoc-nightly-macos-$(date +%Y-%m-%d)
77 mkdir -p ${ARTIFACTS}
74 mkdir -p ${ARTIFACTS}
75+ stack build pandoc
76+ for f in $(find .stack-work/install -name 'pandoc*' -perm +001 -type f); do cp $f ${ARTIFACTS}/; done
78− cp pandoc ${ARTIFACTS}/pandoc-nightly-${GITHUB_SHA}
77+ mv ${ARTIFACTS}/pandoc ${ARTIFACTS}/pandoc
78+ cp COPYRIGHT ${ARTIFACTS}/
79+ echo "Built from ${GITHUB_SHA}" > ${ARTIFACTS}/README.nightly.txt
79 - uses: actions/upload-artifact@master
80 - uses: actions/upload-artifact@master
80 with:
81 with:
81 name: nightly-macos
82 name: nightly-macos