Skip to content

Commit

Permalink
try customizing the bash
Browse files Browse the repository at this point in the history
  • Loading branch information
shayne-fletcher committed Jul 14, 2024
1 parent 63013bf commit 617abcc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ghc-lib-ghc-master-ghc-9.10.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ jobs:
shell: bash
run: |-
curl -L https://github.com/commercialhaskell/stackage-content/releases/download/msys2-20230526/msys2-20230526-x86_64.tar.xz -o msys2-20230526-x86_64.tar.xz
tar xvf msys2-20230526-x86_64.tar.xz > /dev/null
echo "GHCUP_MSYS2=$(pwd)/msys64" >> $GITHUB_ENV
dir=$(pwd)
cd /c/ && tar xvf $dir/msys2-20230526-x86_64.tar.xz > /dev/null
echo "GHCUP_MSYS2=/c/msys64" >> $GITHUB_ENV
if: matrix.os == 'windows'
- name: Install ghcup
shell: bash
Expand Down Expand Up @@ -48,11 +49,12 @@ jobs:
cabal --store-dir=$HOME/.cabal/store --lib --force-reinstalls --package-env=- install extra-1.7.16 optparse-applicative-0.18.1.0
if: matrix.os == 'ubuntu' || matrix.os == 'macos'
- name: Run CI.hs (windows)
shell: bash
shell: C:/msys64/usr/bin/bash --noprofile --no-rc -e -o pipefail {0}
run: |-
PATH=/c/cabal/bin:/c/ghcup/ghc/9.10.1/bin:/c/ghcup/bin:"$GHCUP_MSYS2"/usr/bin:/c/mingw64/bin:"/c/program files/git/bin":"$PATH"
PATH=/c/cabal/bin:/c/ghcup/ghc/9.10.1/bin:/c/ghcup/bin:/c/msys64/usr/bin:/c/mingw64/bin:"/c/program files/git/bin":$PATH
export PATH
$GHCUP_MSYS2/usr/bin/bash --noprofile --norc -e -o pipefail -c "set -x && pacman -S autoconf automake-wrapper make patch python tar mintty --noconfirm && runghc --ghc-arg=-clear-package-db --ghc-arg=-global-package-db --ghc-arg=-user-package-db --ghc-arg=-package-db --ghc-arg=/c/cabal/store/$(ls /c/cabal/store)/package.db CI.hs --ghc-flavor ghc-master"
pacman -S autoconf automake-wrapper make patch python tar mintty --noconfirm
runghc --ghc-arg=-clear-package-db --ghc-arg=-global-package-db --ghc-arg=-user-package-db --ghc-arg=-package-db --ghc-arg=/c/cabal/store/$(ls /c/cabal/store)/package.db CI.hs --ghc-flavor ghc-master
if: matrix.os == 'windows'
- name: Run CI.hs (unix)
shell: bash
Expand Down

0 comments on commit 617abcc

Please sign in to comment.