Skip to content

Commit

Permalink
ci: Try using older version of ghc-source-gen (#228)
Browse files Browse the repository at this point in the history
There is a build failure with ghc-source-gen-0.4.4.0 when
using GHC 8.10, so tell cabal to use an older version.
  • Loading branch information
varungandhi-src authored Dec 25, 2023
1 parent 1d0b24e commit 67e7820
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/protobuf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- 'scip.proto'
- 'buf**'
- '.tool-versions'
- 'dev/proto-generate.sh'

jobs:
protoc-gen-up-to-date:
Expand Down
2 changes: 1 addition & 1 deletion dev/proto-generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi

echo "--- Haskell ---"
command -v cabal > /dev/null 2>&1 || { echo >&2 "Haskell's 'cabal' command is not installed. Please install it first via https://www.haskell.org/ghcup/"; exit 1; }
cabal install proto-lens-protoc-0.7.1.1 --overwrite-policy=always --ghc-options='-j2 +RTS -A32m'
cabal install proto-lens-protoc-0.7.1.1 ghc-source-gen-0.4.3.0 --overwrite-policy=always --ghc-options='-j2 +RTS -A32m'
ln -sfv `which proto-lens-protoc` "$PWD/.bin/protoc-gen-haskell"
PATH="$PWD/.bin:$PATH"

Expand Down

0 comments on commit 67e7820

Please sign in to comment.