~safinaskar/check-cfg-ambiguity

ref: a9fc453eb73250650f3458659344e1b902538027 check-cfg-ambiguity/.build.yml -rw-r--r-- 889 bytes
a9fc453eAskar Safin Comment 1 year, 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# SourceHut

image: debian/stable
arch: amd64

# 2021-04-17 ghcup on debian bullseye told me to install this packages
packages:
  - build-essential
  - curl
  - libffi-dev
  - libgmp-dev
  - libgmp10
  - libncurses-dev
  - libncurses5
  - libtinfo5
  # - libffi6 # ghcup also told to install libffi6, but apt could not find libffi6

environment:
  PATH: /home/build/.cabal/bin:/home/build/.ghcup/bin:/usr/bin:/bin
  LC_ALL: C.UTF-8

tasks:
  - main: |
      sudo chsh -s /bin/bash build # https://lists.sr.ht/~sircmpwn/sr.ht-discuss/%3C1622059050.562786273%40f383.i.mail.ru%3E
      mkdir -p ~/.ghcup/bin
      curl https://downloads.haskell.org/~ghcup/x86_64-linux-ghcup > ~/.ghcup/bin/ghcup
      chmod +x ~/.ghcup/bin/ghcup
      ghcup upgrade
      ghcup install ghc
      ghcup set ghc
      ghcup install cabal
      cabal v2-update
      cd check-cfg-ambiguity
      cabal v2-build