git.iko.soy/typeable/pandoc
on master help sign in
Nightly process improvements.
e2e6dbcJohn MacFarlane
.github/workflows/nightly.yml+20−33
@@ -12,25 +12,19 @@ jobs:
12 - uses: actions/checkout@v2
12 - uses: actions/checkout@v2
13 - name: Install dependencies
13 - name: Install dependencies
14 run: |
14 run: |
15− export PATH=/opt/cabal/3.2/bin:/opt/ghc/8.8.3/bin:$PATH
16− ls /opt/cabal/*/bin
17− ls /opt/ghc/*/bin
18 ghc --version
15 ghc --version
19 cabal --version
16 cabal --version
20 cabal v2-update
17 cabal v2-update
21 cabal v2-build --dependencies-only all
18 cabal v2-build --dependencies-only all
22 - name: Build
19 - name: Build
23 run: |
20 run: |
24− export PATH=/opt/cabal/3.2/bin:/opt/ghc/8.8.3/bin:$PATH
25− cabal v2-install all
21+ cabal v2-install --install-method=copy --installdir=. all
26− strip $HOME/.cabal/bin/pandoc
22+ strip pandoc
27 - name: Install artifact
23 - name: Install artifact
28 run: |
24 run: |
29 export ARTIFACTS=nightly-linux/pandoc-nightly-linux-$(date +%Y-%m-%d)
25 export ARTIFACTS=nightly-linux/pandoc-nightly-linux-$(date +%Y-%m-%d)
30 mkdir -p ${ARTIFACTS}
26 mkdir -p ${ARTIFACTS}
31− cp $HOME/.cabal/bin/pandoc ${ARTIFACTS}/
27+ cp pandoc ${ARTIFACTS}/pandoc-nightly-${GITHUB_SHA}
32− cp COPYRIGHT ${ARTIFACTS}/
33− echo "Built from ${GITHUB_SHA}" > ${ARTIFACTS}/README.nightly.txt
34 - uses: actions/upload-artifact@master
28 - uses: actions/upload-artifact@master
35 with:
29 with:
36 name: nightly-linux
30 name: nightly-linux
@@ -42,25 +36,20 @@ jobs:
42
36
43 steps:
37 steps:
44 - uses: actions/checkout@v2
38 - uses: actions/checkout@v2
45− - name: Install stack
46− shell: cmd
47− run: |
48− choco install haskell-stack
49 - name: Install dependencies
39 - name: Install dependencies
50 run: |
40 run: |
41+ ghc --version
42+ cabal --version
51− stack update
43+ cabal v2-update
52− stack build --dependencies-only pandoc
44+ cabal v2-build --dependencies-only all
53 - name: Build artifacts
45 - name: Build artifacts
54 shell: cmd
46 shell: cmd
55 run: |
47 run: |
48+ cabal v2-install --install-method=copy --installdir=. all
56 for /f %%a in ('powershell -Command "Get-Date -format yyyy-MM-dd"') do set THEDATE=%%a
49 for /f %%a in ('powershell -Command "Get-Date -format yyyy-MM-dd"') do set THEDATE=%%a
57 set ARTIFACTS=%CD%\nightly-windows\pandoc-nightly-windows-%THEDATE%
50 set ARTIFACTS=%CD%\nightly-windows\pandoc-nightly-windows-%THEDATE%
58 mkdir %ARTIFACTS%
51 mkdir %ARTIFACTS%
59− stack build pandoc
52+ copy pandoc.exe %ARTIFACTS%\pandoc-nightly-%GITHUB_SHA%.exe
60− forfiles /P .\.stack-work\install /M pandoc*.exe /S /C "cmd /C copy @path %%ARTIFACTS%%"
61− copy COPYRIGHT %ARTIFACTS%
62− ren %ARTIFACTS%\COPYRIGHT COPYRIGHT.txt
63− echo Built from %GITHUB_SHA% > %ARTIFACTS%\README.nightly.txt
64 - uses: actions/upload-artifact@master
53 - uses: actions/upload-artifact@master
65 with:
54 with:
66 name: nightly-windows
55 name: nightly-windows
@@ -72,23 +61,21 @@ jobs:
72
61
73 steps:
62 steps:
74 - uses: actions/checkout@v2
63 - uses: actions/checkout@v2
75− - name: Install stack
76− run: |
77− curl -L https://get.haskellstack.org/stable/osx-x86_64.tar.gz -o stack.tar.gz
78− tar xzvf stack.tar.gz --strip-components=1 'stack*/stack'
79 - name: Install dependencies
64 - name: Install dependencies
80 run: |
65 run: |
66+ ghc --version
67+ cabal --version
81− ./stack update
68+ cabal v2-update
82− ./stack build --dependencies-only pandoc
69+ cabal v2-build --dependencies-only all
83− - name: Build artifacts
70+ - name: Build
71+ run: |
72+ cabal v2-install --install-method=copy --installdir=. all
73+ strip pandoc
74+ - name: Install artifact
84 run: |
75 run: |
85− export ARTIFACTS=nightly-macos/pandoc-nightly-macos-$(date +%Y-%m-%d)
76+ export ARTIFACTS=nightly-linux/pandoc-nightly-linux-$(date +%Y-%m-%d)
86 mkdir -p ${ARTIFACTS}
77 mkdir -p ${ARTIFACTS}
87− ./stack build pandoc
88− for f in $(find .stack-work/install -name 'pandoc*' -perm +001 -type f); do cp $f ${ARTIFACTS}/; done
89− mv ${ARTIFACTS}/pandoc ${ARTIFACTS}/pandoc
78+ cp pandoc ${ARTIFACTS}/pandoc-nightly-${GITHUB_SHA}
90− cp COPYRIGHT ${ARTIFACTS}/
91− echo "Built from ${GITHUB_SHA}" > ${ARTIFACTS}/README.nightly.txt
92 - uses: actions/upload-artifact@master
79 - uses: actions/upload-artifact@master
93 with:
80 with:
94 name: nightly-macos
81 name: nightly-macos