Add builds.sr.ht CI

This commit is contained in:
Francesco Gazzetta
2022-07-02 10:43:33 +02:00
parent c387a33bdb
commit 9ee497e31a

93
.builds/all.yml Normal file
View File

@@ -0,0 +1,93 @@
# This Sourcehut job script has been generated by a script via
#
# haskell-ci 'sourcehut' '--sourcehut-source=https://git.sr.ht/~fgaz/qbe-hs' 'qbe.cabal'
#
# To regenerate the script (for example after adjusting tested-with) run
#
# haskell-ci regenerate
#
# For more information, see https://github.com/haskell-CI/haskell-ci
#
# version: 0.15.20220531
#
# REGENDATA ("0.15.20220531",["sourcehut","--sourcehut-source=https://git.sr.ht/~fgaz/qbe-hs","qbe.cabal"])
#
image: ubuntu/bionic
packages:
- gcc
- libgmp-dev
sources:
- https://git.sr.ht/~fgaz/qbe-hs
tasks:
- all-prepare: |
mkdir -p "$HOME/.ghcup/bin"
curl -sL https://downloads.haskell.org/ghcup/0.1.17.8/x86_64-linux-ghcup-0.1.17.8 > "$HOME/.ghcup/bin/ghcup"
chmod a+x "$HOME/.ghcup/bin/ghcup"
export PATH=$PATH:$HOME/.ghcup/bin
echo "export PATH=$PATH:$HOME/.ghcup/bin" >> ~/.buildenv
"$HOME/.ghcup/bin/ghcup" install cabal 3.6
"$HOME/.ghcup/bin/ghcup" install ghc "ghc-8.10.7"
"$HOME/.ghcup/bin/ghcup" install ghc "ghc-9.0.2"
"$HOME/.ghcup/bin/ghcup" install ghc "ghc-9.2.2"
cabal update
- 8_10_7-prepare: |
cd qbe-hs
cabal configure -w ghc-8.10.7
- 8_10_7-check: |
cd qbe-hs
cabal check
- 8_10_7-dependencies: |
cd qbe-hs
cabal build all --enable-tests --only-dependencies
cabal build all --only-dependencies
- 8_10_7-build: |
cd qbe-hs
cabal build all
- 8_10_7-test: |
cd qbe-hs
cabal test all --enable-tests
- 8_10_7-haddock: |
cd qbe-hs
cabal haddock all
- 9_0_2-prepare: |
cd qbe-hs
cabal configure -w ghc-9.0.2
- 9_0_2-check: |
cd qbe-hs
cabal check
- 9_0_2-dependencies: |
cd qbe-hs
cabal build all --enable-tests --only-dependencies
cabal build all --only-dependencies
- 9_0_2-build: |
cd qbe-hs
cabal build all
- 9_0_2-test: |
cd qbe-hs
cabal test all --enable-tests
- 9_0_2-haddock: |
cd qbe-hs
cabal haddock all
- 9_2_2-prepare: |
cd qbe-hs
cabal configure -w ghc-9.2.2
- 9_2_2-check: |
cd qbe-hs
cabal check
- 9_2_2-dependencies: |
cd qbe-hs
cabal build all --enable-tests --only-dependencies
cabal build all --only-dependencies
- 9_2_2-build: |
cd qbe-hs
cabal build all
- 9_2_2-test: |
cd qbe-hs
cabal test all --enable-tests
- 9_2_2-haddock: |
cd qbe-hs
cabal haddock all
triggers:
- action: email
condition: failure
to: Francesco Gazzetta <fgaz@fgaz.me>