Skip to content

Commit 58f0e67

Browse files
committed
Add extra flags
1 parent cff0090 commit 58f0e67

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Diff for: .github/workflows/ci.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
steps:
3838
- name: Get Packages (macOS)
3939
if: runner.os == 'macOS'
40-
run: brew install autoconf automake gmp libtool
40+
run: brew install autoconf automake libtool
4141

4242
- name: Get Packages (Windows)
4343
uses: msys2/setup-msys2@v2
@@ -100,11 +100,15 @@ jobs:
100100

101101
- name: Build Dependencies
102102
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' : '' }}
104106

105107
- name: Build and install echidna
106108
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' : '' }}
108112

109113
- name: Amend and compress binaries (macOS)
110114
if: runner.os == 'macOS'

0 commit comments

Comments
 (0)