File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 37
37
steps :
38
38
- name : Get Packages (macOS)
39
39
if : runner.os == 'macOS'
40
- run : brew install autoconf automake gmp libtool
40
+ run : brew install autoconf automake libtool
41
41
42
42
- name : Get Packages (Windows)
43
43
uses : msys2/setup-msys2@v2
@@ -100,11 +100,15 @@ jobs:
100
100
101
101
- name : Build Dependencies
102
102
run : |
103
- stack build --ghc-options="-Werror" --extra-include-dirs=$HOME/.local/include --extra-lib-dirs=$HOME/.local/lib --only-dependencies
103
+ stack build --ghc-options="-Werror" --extra-include-dirs=$HOME/.local/include --extra-lib-dirs=$HOME/.local/lib --only-dependencies $EXTRA_ARGS
104
+ env :
105
+ EXTRA_ARGS : ${{ (runner.arch == 'ARM64' && '--extra-include-dirs=/opt/homebrew/include --extra-lib-dirs=/opt/homebrew/lib') || '' }}
104
106
105
107
- name : Build and install echidna
106
108
run : |
107
- stack install --flag echidna:static --ghc-options="-Werror" --extra-include-dirs=$HOME/.local/include --extra-lib-dirs=$HOME/.local/lib
109
+ stack install --flag echidna:static --ghc-options="-Werror" --extra-include-dirs=$HOME/.local/include --extra-lib-dirs=$HOME/.local/lib $EXTRA_ARGS
110
+ env :
111
+ EXTRA_ARGS : ${{ (runner.arch == 'ARM64' && '--extra-include-dirs=/opt/homebrew/include --extra-lib-dirs=/opt/homebrew/lib') || '' }}
108
112
109
113
- name : Amend and compress binaries (macOS)
110
114
if : runner.os == 'macOS'
You can’t perform that action at this time.
0 commit comments