Skip to content

Commit

Permalink
Simplified examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Oct 21, 2024
1 parent 283c56b commit eb9386e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 27 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/step-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ on:
- .github/workflows/step-mac.yml
jobs:
mac:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-15, macos-14, macos-13]
runs-on: macos-14
steps:
- run: brew install postgresql@17
- run: brew link --overwrite postgresql@17
Expand Down
14 changes: 2 additions & 12 deletions .github/workflows/step-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,11 @@ on:
- .github/workflows/step-ubuntu.yml
jobs:
ubuntu:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04
postgres: 16
- os: ubuntu-22.04
postgres: 14
- os: ubuntu-20.04
postgres: 14
runs-on: ubuntu-24.04
steps:
- name: Install pgvector
run: |
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y
sudo apt-get install postgresql-${{ matrix.postgres }}-pgvector
sudo apt-get install postgresql-16-pgvector
- run: sudo systemctl start postgresql
- run: sudo -u postgres psql -c 'CREATE EXTENSION vector'
12 changes: 2 additions & 10 deletions .github/workflows/step-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,11 @@ on:
- .github/workflows/step-windows.yml
jobs:
windows:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-2022
vs: C:\Program Files\Microsoft Visual Studio\2022\Enterprise
- os: windows-2019
vs: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise
runs-on: windows-2022
steps:
- name: Install pgvector
run: |
call "${{ matrix.vs }}\VC\Auxiliary\Build\vcvars64.bat"
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
cd %TEMP%
git clone --branch v0.7.4 https://github.com/pgvector/pgvector.git
cd pgvector
Expand Down

0 comments on commit eb9386e

Please sign in to comment.