Skip to content

Commit ffaf096

Browse files
committed
Add CI configuration which builds library with -fpython3-config
1 parent 9c6a8b8 commit ffaf096

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defaults:
1212

1313
jobs:
1414
cabal:
15-
name: ${{ matrix.os }} / GHC ${{ matrix.ghc }} / ${{ matrix.python-version }}
15+
name: ${{ matrix.os }} / GHC ${{ matrix.ghc }} / ${{ matrix.python-version }} / ${{ matrix.cabal-flags }}
1616
runs-on: ${{ matrix.os }}
1717
strategy:
1818
matrix:
@@ -29,6 +29,8 @@ jobs:
2929
- { cabal: "3.14", os: ubuntu-latest, ghc: "9.10.2", python-version: "3.12" }
3030
- { cabal: "3.14", os: ubuntu-latest, ghc: "9.10.2", python-version: "3.13" }
3131
- { cabal: "3.14", os: ubuntu-latest, ghc: "9.10.2", python-version: "3.14" }
32+
# Build with python3-config instead of pkg-config
33+
- { cabal: "3.14", os: ubuntu-latest, ghc: "9.10.2", python-version: "3.12", cabal-flags: "-fpython3-config" }
3234
fail-fast: false
3335
steps:
3436
# ----------------
@@ -58,6 +60,8 @@ jobs:
5860
python -V
5961
pkg-config python3-embed --cflags
6062
pkg-config python3-embed --libs
63+
python3-config --cflags
64+
python3-config --libs
6165
# ----------------
6266
- name: Make sdist
6367
run: |
@@ -77,7 +81,7 @@ jobs:
7781
run: |
7882
if [ "${{ matrix.skip-test }}" == "" ]; then FLAG_TEST=--enable-test; fi
7983
if [ "${{ matrix.skip-bench }}" == "" ]; then FLAG_BENCH=--enable-benchmarks; fi
80-
cabal configure $FLAG_TEST $FLAG_BENCH
84+
cabal configure $FLAG_TEST $FLAG_BENCH ${{ matrix.cabal-flags }}
8185
cabal build all --write-ghc-environment-files=always
8286
# ----------------
8387
- name: Test

0 commit comments

Comments
 (0)