File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4646
4747 - name : Set up system
48- run : brew install libmagic pkg-config rsync
48+ run : |
49+ brew install libmagic pkg-config rsync
50+ # On ARM64 Macs, Homebrew uses /opt/homebrew instead of /usr/local
51+ # Set paths so that the Haskell magic package can find libmagic
52+ HOMEBREW_PREFIX="$(brew --prefix)"
53+ {
54+ echo "PKG_CONFIG_PATH=${HOMEBREW_PREFIX}/lib/pkgconfig:${PKG_CONFIG_PATH:-}"
55+ echo "LIBRARY_PATH=${HOMEBREW_PREFIX}/lib:${LIBRARY_PATH:-}"
56+ echo "C_INCLUDE_PATH=${HOMEBREW_PREFIX}/include:${C_INCLUDE_PATH:-}"
57+ } >> "$GITHUB_ENV"
4958
5059 - name : Setup Haskell
5160 uses : haskell-actions/setup@v2
Original file line number Diff line number Diff line change 4545 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4646
4747 - name : Set up system
48- run : brew install libmagic pkg-config rsync
48+ run : |
49+ brew install libmagic pkg-config rsync
50+ # On ARM64 Macs, Homebrew uses /opt/homebrew instead of /usr/local
51+ # Set paths so that the Haskell magic package can find libmagic
52+ HOMEBREW_PREFIX="$(brew --prefix)"
53+ {
54+ echo "PKG_CONFIG_PATH=${HOMEBREW_PREFIX}/lib/pkgconfig:${PKG_CONFIG_PATH:-}"
55+ echo "LIBRARY_PATH=${HOMEBREW_PREFIX}/lib:${LIBRARY_PATH:-}"
56+ echo "C_INCLUDE_PATH=${HOMEBREW_PREFIX}/include:${C_INCLUDE_PATH:-}"
57+ } >> "$GITHUB_ENV"
4958
5059 - name : Setup Haskell
5160 uses : haskell-actions/setup@v2
You can’t perform that action at this time.
0 commit comments