@@ -10,41 +10,32 @@ jobs:
10
10
ci :
11
11
strategy :
12
12
fail-fast : false
13
- matrix :
14
- ghc : [8.10.7]
15
13
runs-on : ubuntu-latest
16
- container :
17
- # Ubuntu with ghcup already installed
18
- image : ghcr.io/facebookincubator/hsthrift/ci-base:ghcup
19
14
steps :
20
15
- name : Checkout code
21
- uses : actions/checkout@v2
16
+ uses : actions/checkout@v3
17
+ - name : Set up Haskell
18
+ uses : haskell/actions/setup@v2
19
+ with :
20
+ ghc-version : ' 8.10'
21
+ cabal-version : ' latest'
22
22
- name : Install additional tools
23
23
run : |
24
- apt-get update
25
- apt install -y unzip
26
- - name : Install GHC ${{ matrix.ghc }}
27
- run : ghcup install ghc ${{ matrix.ghc }} --set
28
- - name : Install cabal-install 3.6
29
- run : ghcup install cabal 3.6.0.0 --set
30
- - name : Add GHC and cabal to PATH
31
- run : echo "$HOME/.ghcup/bin" >> "$GITHUB_PATH"
24
+ sudo apt-get update
25
+ sudo apt install -y unzip curl
32
26
- name : Install protoc
33
27
run : |
34
28
PROTOC_ZIP=protoc-3.14.0-linux-x86_64.zip
35
29
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/"$PROTOC_ZIP"
36
- unzip -o "$PROTOC_ZIP" -d /usr/local bin/protoc
37
- unzip -o "$PROTOC_ZIP" -d /usr/local 'include/*'
38
- rm -f $PROTOC_ZIP
39
- - name : Populate hackage index
40
- run : cabal update
41
- working-directory : bindings/haskell
30
+ unzip -o "$PROTOC_ZIP" -d "$HOME/.protoc" bin/protoc
31
+ unzip -o "$PROTOC_ZIP" -d "$HOME/.protoc" 'include/*'
32
+ echo "$HOME/.protoc/bin" >> "$GITHUB_PATH"
42
33
- name : Build proto-lens-protoc wrapper
43
- run : cabal install proto-lens-protoc
34
+ run : cabal install proto-lens-protoc --ghc-options='-j2 +RTS -A32m'
44
35
working-directory : bindings/haskell
45
36
- name : Generate Haskell
46
37
run : protoc --plugin=protoc-gen-haskell="$HOME/.cabal/bin/proto-lens-protoc" --haskell_out=src --proto_path=../.. scip.proto
47
38
working-directory : bindings/haskell
48
39
- name : Build source
49
- run : cabal build
40
+ run : cabal build --ghc-options='-j2 +RTS -A32m'
50
41
working-directory : bindings/haskell
0 commit comments