6363 - uses : actions/checkout@v3
6464 - uses : msys2/setup-msys2@v2
6565 with :
66- msystem : UCRT64
67- path-type : inherit
66+ msystem : CLANG64
67+ path-type : minimal
6868 update : true
6969 install : >-
7070 base-devel
@@ -75,14 +75,23 @@ jobs:
7575 pacboy : >-
7676 cmake:p
7777 ninja:p
78- gcc:p
78+ clang:p
79+ lld:p
7980 autotools:p
8081 gmp:p
8182 openssl:p
82- - uses : haskell/ actions/setup@v2
83+ - uses : haskell- actions/setup@v2
8384 id : setup
8485 with :
85- ghc-version : ' 9.2.8'
86+ ghc-version : ' 9.4.7'
87+
88+ - name : Extract GHC & Cabal paths
89+ run : |
90+ HASKELL_PATHS="$(cygpath -u "$GHC_PATH"):$(cygpath -u "$CABAL_PATH")"
91+ echo "HASKELL_PATHS=$HASKELL_PATHS" >> "$GITHUB_ENV"
92+ env :
93+ GHC_PATH : ${{ steps.setup.outputs.ghc-path }}
94+ CABAL_PATH : ${{ steps.setup.outputs.cabal-path }}
8695
8796 - name : build and install c dependencies
8897 run : |
94103 echo "::endgroup::"
95104 - name : Configure the build
96105 run : |
106+ export PATH="$HASKELL_PATHS:$PATH"
97107 cabal configure --disable-tests --disable-benchmarks --disable-documentation
98108 cabal build --dry-run
99109 # The last step generates dist-newstyle/cache/plan.json for the cache key.
@@ -109,7 +119,9 @@ jobs:
109119 restore-keys : ${{ env.key }}-
110120
111121 - name : Install haskell dependencies
112- run : cabal build all --only-dependencies
122+ run : |
123+ export PATH="$HASKELL_PATHS:$PATH"
124+ cabal build all --only-dependencies
113125
114126 # Cache dependencies already, so that we do not have to rebuild them should the subsequent steps fail.
115127 - name : Save cached dependencies
@@ -122,7 +134,9 @@ jobs:
122134
123135 - name : build hevm library
124136 run : |
125- cabal build --extra-include-dirs="$HOME/.local/include" --extra-lib-dirs="$HOME/.local/lib"
137+ export PATH="$HASKELL_PATHS:$PATH"
138+ cabal build --extra-include-dirs="$HOME/.local/include" --extra-lib-dirs="$HOME/.local/lib" \
139+ --extra-include-dirs="D:/a/_temp/msys64/clang64/include" --extra-lib-dirs="D:/a/_temp/msys64/clang64/lib"
126140
127141 cabal-check :
128142 runs-on : ubuntu-latest
0 commit comments