Cannot run CI locally under Windows
I want to compile this repo locally, because I want to supply patches for changes in the base library.
After making tool
compile under windows I get stuck at head-hackage-ci.exe
running build-repo.sh
:
PS E:\ghc-bifunctors\fork\head.hackage> $env:GHC='/e/ghc-bifunctors/artifacts(2)/ghc-9.5.20221210-x86_64-unknown-mingw32/bin/ghc.exe'
PS E:\ghc-bifunctors\fork\head.hackage> $env:EXTRA_HC_OPTS='-dcore-lint'
PS E:\ghc-bifunctors\fork\head.hackage> stack exec --no-ghc-package-path -- "$env:GIT_SH" --login -c "./run-ci"
Found GHC 9.5.20221210, commit c658c580863fc23c29f183db3f52a2004756d84c.
Adding lens-5.2 to extra package set
Adding aeson-2.1.1.0 to extra package set
Adding criterion-1.6.0.0 to extra package set
Adding scotty-0.12.1 to extra package set
Adding generic-lens-2.2.1.0 to extra package set
Adding microstache-1.0.2.2 to extra package set
Adding singletons-base-3.1 to extra package set
Adding servant-0.19.1 to extra package set
Adding hgmp-0.1.2.1 to extra package set
Adding Agda-2.6.2.2 to extra package set
Adding mmark-0.0.7.6 to extra package set
Adding doctest-0.20.1 to extra package set
Adding tasty-1.4.2.3 to extra package set
Adding pandoc-2.19.2 to extra package set
Adding alex as a build-tool package
Adding happy as a build-tool package
Adding system-test /e/ghc-bifunctors/fork/head.hackage/ci/../tests/ghc-debug/test/ to --test-package list
Adding ghc-tests /e/ghc-bifunctors/fork/head.hackage/ci/../tests/ghc-tests to --test-package list
/e/ghc-bifunctors/fork/head.hackage/ci/run/bin/tool
/e/ghc-bifunctors/fork/head.hackage/ci/run/bin/hackage-repo-tool
Wrote tarball sdist to
E:\ghc-bifunctors\fork\head.hackage\ci\dist-newstyle\sdist\head-hackage-ci-0.1.0.0.tar.gz
Wrote tarball sdist to
E:\ghc-bifunctors\fork\head.hackage\ci\dist-newstyle\sdist\tool-0.tar.gz
Resolving dependencies...
Up to date
Symlinking 'head-hackage-ci.exe' to
'E:/ghc-bifunctors/fork/head.hackage/ci/run/bin\head-hackage-ci.exe'
++ pwd
+ head-hackage-ci test-patches --extra-cabal-fragment=/e/ghc-bifunctors/fork/head.hackage/ci/run/deps.cabal.project --patches=../../patches '--with-compiler=/e/ghc-bifunctors/artifacts(2)/ghc-9.5.20221210-x86_64-unknown-mingw32/bin/ghc.exe' --extra-package=lens==5.2 --extra-package=aeson==2.1.1.0 --extra-package=criterion==1.6.0.0 --extra-package=scotty==0.12.1 --extra-package=generic-lens==2.2.1.0 --extra-package=microstache==1.0.2.2 --extra-package=singletons-base==3.1 --extra-package=servant==0.19.1 --extra-package=hgmp==0.1.2.1 --extra-package=Agda==2.6.2.2 --extra-package=mmark==0.0.7.6 --extra-package=doctest==0.20.1 --extra-package=tasty==1.4.2.3 --extra-package=pandoc==2.19.2 --build-tool-package=alex --build-tool-package=happy --test-package=system-test=/e/ghc-bifunctors/fork/head.hackage/ci/../tests/ghc-debug/test/ --test-package=ghc-tests=/e/ghc-bifunctors/fork/head.hackage/ci/../tests/ghc-tests --cabal-option=-j --ghc-option=-dcore-lint
head-hackage-ci.exe: build-repo.sh: startProcess: invalid argument (Exec format error)