diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-09-01 18:21:57 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-09-01 19:13:40 +0100 |
| commit | 53b4c25087aa1b62f1bf3c5feace21c28f529418 (patch) | |
| tree | 9dbb4a714ff8057064d45252261b25621026cbd4 /.github/workflows | |
| parent | c2c7ed1f25b51947ebb690f6b8464c78fe83bb2b (diff) | |
Add environment variable for using system libjq and libonig
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8f5f70a..563a18c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,6 +10,11 @@ jobs: matrix: os: [ubuntu-20.04, macos-11] python-version: [3.5, 3.6, 3.7, 3.8, 3.9, "3.10", "3.11", "3.12-dev", "pypy-3.7"] + use-system-libs: [false] + include: + - os: ubuntu-20.04 + python-version: "3.11" + use-system-libs: true steps: @@ -25,6 +30,16 @@ jobs: - run: "make jq.c" - run: tox -e py + if: ${{ !matrix.use-system-libs }} + + - run: | + # Remove deps to make sure they're not being used + rm -r deps + + sudo apt-get install -y libjq-dev libonig-dev + + JQPY_USE_SYSTEM_LIBS=1 tox -e py + if: ${{ matrix.use-system-libs }} build_sdist: name: Build source distribution |
