fix(haskell^8) (#3029)

* fix(haskell^8)

* last guess :/

* ghc-pkg check

* i think this does it

* 9.0 didn't actually build before
This commit is contained in:
Jacob Heider 2023-08-22 19:14:25 -04:00 committed by GitHub
parent 0e71d27a8d
commit 5605365a50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,6 +42,8 @@ dependencies:
invisible-island.net/ncurses: 6 invisible-island.net/ncurses: 6
tea.xyz/gx/cc: 'c99' # ghc uses this during builds tea.xyz/gx/cc: 'c99' # ghc uses this during builds
sourceware.org/libffi: 3 sourceware.org/libffi: 3
linux:
github.com/numactl/numactl: ^2
warnings: warnings:
- vendored - vendored
@ -59,8 +61,17 @@ build:
working-directory: ${{prefix}} working-directory: ${{prefix}}
- run: | - run: |
find . -type f -print0 | xargs -0 sed -i.bak -e "s|$TEA_PREFIX|\$TEA_PREFIX|g" find . -type f -print0 | xargs -0 sed -i.bak -e "s|$TEA_PREFIX|\$TEA_PREFIX|g"
rm *.bak rm *.bak
working-directory: ${{prefix}}/ghc/{{version}}/bin working-directory: ${{prefix}}/ghc/{{version}}/bin
- run: |
sed -i.bak -e "s|$TEA_PREFIX|\$TEA_PREFIX|g" env
rm env.bak
working-directory: ${{prefix}}/.ghcup
- run: |
find . -type f -name \*.conf -print0 | xargs -0 sed -i.bak -e 's|{{prefix}}|${pkgroot}/../../../../..|g'
find . -type f -name \*.conf.bak -delete
working-directory: ${{prefix}}/ghc/{{version}}/lib/ghc-{{version}}/package.conf.d
if: <9.4
env: env:
BOOTSTRAP_HASKELL_NONINTERACTIVE: 1 BOOTSTRAP_HASKELL_NONINTERACTIVE: 1
BOOTSTRAP_HASKELL_NO_UPGRADE: 1 BOOTSTRAP_HASKELL_NO_UPGRADE: 1
@ -70,6 +81,8 @@ build:
test: test:
script: script:
- ghc-pkg recache
- ghc-pkg check
- test "$(runghc $FIXTURE)" = "Hello World" - test "$(runghc $FIXTURE)" = "Hello World"
fixture: fixture:
main = putStrLn "Hello World" main = putStrLn "Hello World"