;ci: cleanups

This commit is contained in:
Simon Michael 2024-04-17 17:21:39 -10:00
parent 6d1118ee59
commit 9910651451
5 changed files with 13 additions and 16 deletions

View File

@ -1,4 +1,4 @@
# Runs on any push to ci-linux-arm32v7.
# Runs on any push to binaries-linux-arm32v7.
# Produces optimised static arm32v7 linux binaries,
# using GHC 8.10.4 and cabal.
# Currently runs no tests.

View File

@ -1,4 +1,4 @@
# Runs on any push to ci-linux-x64.
# Runs on any push to binaries-linux-x64 or binaries.
# Produces optimised static x64 linux binaries,
# using the GHC version below and (cabal or stack)
# and Alpine linux, which provides the statically-linkable musl.
@ -35,6 +35,8 @@ jobs:
# run: |
# tools/checkembeddedfiles
# things to be cached/restored:
- name: Uncache ghcup-installed tools
id: ghcup
uses: actions/cache@v4
@ -111,6 +113,8 @@ jobs:
restore-keys: |
${{ runner.os }}-hledger-web-stack-work-20240417
# actions:
- name: Install general tools with system package manager
run: |
apk --no-cache add binutils-gold curl gcc g++ git gmp-dev ncurses-dev ncurses-static libffi-dev make xz tar perl zlib-dev zlib-static

View File

@ -1,4 +1,4 @@
# Runs on any push to ci-mac.
# Runs on any push to binaries-mac-arm64 or binaries.
# Produces optimised mac arm64 binaries and runs unit/doc/functional tests,
# using the default stack.yaml's GHC version.
@ -112,6 +112,8 @@ jobs:
restore-keys: |
${{ runner.os }}-hledger-web-stack-work-from20220817
# actions:
- name: Add .ghcup/bin to PATH for following steps
run: |
echo "$HOME/.ghcup/bin/" >> $GITHUB_PATH

View File

@ -1,4 +1,4 @@
# Runs on any push to ci-mac.
# Runs on any push to binaries-mac-x64 or binaries.
# Produces optimised mac x64 binaries and runs unit/doc/functional tests,
# using the default stack.yaml's GHC version.
@ -112,6 +112,8 @@ jobs:
restore-keys: |
${{ runner.os }}-hledger-web-stack-work-from20220817
# actions:
- name: Add .ghcup/bin to PATH for following steps
run: |
echo "$HOME/.ghcup/bin/" >> $GITHUB_PATH
@ -154,17 +156,6 @@ jobs:
export PATH=~/.local/bin:$PATH
COLUMNS=80 $stack exec -- shelltest --execdir -j16 hledger/test -x /_ -x /addons -x ledger-compat/ledger-baseline -x ledger-compat/ledger-regress -x ledger-compat/ledger-collected # bin
# # This is tested here rather than in the regular CI because it's slow,
# # doesn't fail too often, and the cost of late detection and fixing is low.
# - name: Test haddock generation
# env:
# stack: ${{ matrix.plan.stack }}
# run: |
# printf "haddock: "; stack exec -- haddock --version
# time $stack build --fast --haddock --no-haddock-deps --no-haddock-hyperlink-source --haddock-arguments="--no-print-missing-docs"
# # --no-haddock-hyperlink-source is 25% faster
# # --no-print-missing-docs is 600% quieter
# artifacts:
- name: Gather binaries

View File

@ -1,4 +1,4 @@
# Runs on any push to ci-windows.
# Runs on any push to binaries-windows-x64 or binaries.
# Produces optimised windows binaries,
# using the default stack.yaml's GHC version.
# Currently runs no tests.