Skip to content

Commit

Permalink
Merge pull request #4 from aaron-siegel/widen-macosx-versions
Browse files Browse the repository at this point in the history
Widen MacOS versions
  • Loading branch information
orm011 authored Jun 8, 2024
2 parents 64224dc + 3b8b3d9 commit 72fe4b5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
release:
types:
- created
workflow_dispatch:
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
Expand All @@ -17,10 +18,10 @@ jobs:
include:
- os: macos-12
arch: x86_64
deployment-target: '12.0'
deployment-target: '10.9'
- os: macos-latest
arch: arm64
deployment-target: '14.0'
deployment-target: '11.0'
- os: ubuntu-latest
arch: x86_64
deployment-target: ''
Expand Down Expand Up @@ -52,9 +53,12 @@ jobs:
path: |
pgbuild
src/pgserver/pginstall
key: ${{ runner.os }}-${{ runner.arch }}-build-${{ env.cache-name }}-${{ hashFiles('Makefile', 'pgbuild/Makefile') }}
key: ${{ runner.os }}-${{ runner.arch }}-build-${{ env.cache-name }}-${{
hashFiles('Makefile', 'pgbuild/Makefile', '.github/workflows/build-and-test.yml') }}
- name: Build postgres and pgvector
if: ${{ matrix.os != 'ubuntu-latest' && ! steps.restore-postgres.outputs.cache-hit }}
env:
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.deployment-target }}
# this step is implied by Build wheels, but we do it here for caching before python tests run
# on ubuntu, cibuildwheel will run this step within a docker container, so it cannot use the cache this way
run: make
Expand All @@ -68,7 +72,8 @@ jobs:
path: |
pgbuild
src/pgserver/pginstall
key: ${{ runner.os }}-${{ runner.arch }}-build-${{ env.cache-name }}-${{ hashFiles('Makefile', 'pgbuild/Makefile') }}
key: ${{ runner.os }}-${{ runner.arch }}-build-${{ env.cache-name }}-${{
hashFiles('Makefile', 'pgbuild/Makefile', '.github/workflows/build-and-test.yml') }}
- name: Build wheels
env:
CIBW_ARCHS: ${{ matrix.arch }}
Expand All @@ -85,7 +90,8 @@ jobs:
path: |
pgbuild
src/pgserver/pginstall
key: ${{ runner.os }}-${{ runner.arch }}-build-${{ env.cache-name }}-${{ hashFiles('Makefile', 'pgbuild/Makefile') }}
key: ${{ runner.os }}-${{ runner.arch }}-build-${{ env.cache-name }}-${{
hashFiles('Makefile', 'pgbuild/Makefile', '.github/workflows/build-and-test.yml') }}
- uses: actions/upload-artifact@v3
with:
path: wheelhouse/*.whl
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ dmypy.json
# Pyre type checker
.pyre/

# Pycharm
.idea

build/
pgbuild/
src/pgserver/pginstall
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ install-dev: build
python -m pip install --force-reinstall -e .

clean:
rm -rf build/ wheelhouse/ dist/
rm -rf build/ wheelhouse/ dist/ .eggs/
$(MAKE) -C pgbuild clean

test:
python -m pytest tests/
python -m pytest tests/
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pgserver" # Required
version = "0.1.3" # Required
version = "0.1.4" # Required
description = "Self-contained postgres server for your python applications" # Required
readme = "README.md" # Optional
requires-python = ">=3.9"
Expand Down

0 comments on commit 72fe4b5

Please sign in to comment.