@@ -99,12 +99,14 @@ jobs:
99
99
100
100
- name : Add build script path
101
101
run : |
102
- # MSYS2 doesn't inherit $GITHUB_PATH, so this workaround is neede
103
- cat <(echo "export PATH=$PATH:$(pwd)/.github/bin") ~/.bashrc > ~/.bashrc.new
104
- mv ~/.bashrc.new ~/.bashrc
105
-
106
- # MacOS and Linux use $GITUB_PATH
107
- echo "$(pwd)/.github/bin" >> $GITHUB_PATH
102
+ if [ "${{ matrix.os }}" == "windows-latest" ]; then
103
+ # MSYS2 doesn't inherit $GITHUB_PATH, so this workaround is needed
104
+ cat <(echo "export PATH=$PATH:$(pwd)/.github/bin") ~/.bashrc > ~/.bashrc.new
105
+ mv ~/.bashrc.new ~/.bashrc
106
+ else
107
+ # MacOS and Linux use $GITUB_PATH
108
+ echo "$(pwd)/.github/bin" >> $GITHUB_PATH
109
+ fi
108
110
109
111
- name : " WIN: Install build environment (secp256k1)"
110
112
if : matrix.os == 'windows-latest'
@@ -173,11 +175,16 @@ jobs:
173
175
echo "=== Package list ==="
174
176
pkg-config --list-all
175
177
176
- echo "=== Package details ==="
177
- for x in $(pkg-config --list-all | cut -d ' ' -f 1); do
178
- echo "# $x"
179
- pkg-config "$x" --cflags --libs
180
- done
178
+ if [ "${{ matrix.os }}" == "macos-latest" ]; then
179
+ echo "=== Not printing every package detail in MacOS"
180
+ # due to the location of the installed libraries this fails on MacOS with stuff not related to us
181
+ else
182
+ echo "=== Package details ==="
183
+ for x in $(pkg-config --list-all | cut -d ' ' -f 1); do
184
+ echo "# $x"
185
+ pkg-config "$x" --cflags --libs
186
+ done
187
+ fi
181
188
182
189
- name : Cabal update
183
190
run : retry 2 cabal update
@@ -189,7 +196,7 @@ jobs:
189
196
sed -i 's|tests: False|tests: True|g' cabal.project
190
197
fi
191
198
192
- cp .github/workflows/cabal.project.local.$RUNNER_OS cabal.project.local
199
+ cp .github/workflows/cabal.project.local.ci cabal.project.local
193
200
194
201
echo "# cabal.project.local"
195
202
cat cabal.project.local
0 commit comments