File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed
Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change 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"
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
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"
You can’t perform that action at this time.
0 commit comments