Skip to content

Commit bd7d419

Browse files
committed
Test MacOS CI
1 parent a5006a2 commit bd7d419

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ jobs:
1616
strategy:
1717
matrix:
1818
platform:
19-
- ubuntu-latest
19+
# - ubuntu-latest
20+
- macos-latest
2021
ghc_version:
2122
- "8.6.5"
2223
- "8.8.4"
@@ -28,8 +29,13 @@ jobs:
2829
- "9.8.4"
2930
- "9.10.1"
3031
- "9.12.1"
32+
exclude:
33+
- platform: macos-latest
34+
ghc_version: "8.6.5"
35+
- platform: macos-latest
36+
ghc_version: "8.8.4"
3137
fail-fast: false
32-
name: Build on Linux, GHC ${{ matrix.ghc_version }}
38+
name: Build on ${{ matrix.platform }}, GHC ${{ matrix.ghc_version }}
3339
runs-on: ${{ matrix.platform }}
3440
steps:
3541
- uses: actions/checkout@v4
@@ -39,8 +45,15 @@ jobs:
3945
cabal-version: "3.10.1.0"
4046
- name: Install C++ library
4147
run: |
42-
sudo apt-get update
43-
sudo apt-get install -y libphonenumber-dev
48+
if [ "${{ matrix.platform }}" == "macos-latest" ]; then
49+
brew install llvm@12
50+
brew install libphonenumber
51+
echo LDFLAGS=-L/opt/homebrew/opt/llvm/lib >> $GITHUB_ENV
52+
echo CPPFLAGS=-I/opt/homebrew/opt/llvm/include >> $GITHUB_ENV
53+
else
54+
sudo apt-get update
55+
sudo apt-get install -y libphonenumber-dev
56+
fi
4457
4558
- name: cabal sdist
4659
run: cabal sdist --output-dir "$GITHUB_WORKSPACE/sdist"

0 commit comments

Comments
 (0)