fix: build image #36
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: [push, pull_request] | |
jobs: | |
ubuntu: | |
runs-on: ${{ matrix.os }} | |
if: ${{ !startsWith(github.ref_name, 'mac') && !startsWith(github.ref_name, 'windows') }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- postgres: 15 | |
os: ubuntu-22.04 | |
- postgres: 14 | |
os: ubuntu-22.04 | |
- postgres: 13 | |
os: ubuntu-20.04 | |
# - postgres: 12 | |
# os: ubuntu-20.04 | |
# - postgres: 11 | |
# os: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ankane/setup-postgres@v1 | |
with: | |
postgres-version: ${{ matrix.postgres }} | |
dev-files: true | |
- run: | | |
sudo script/install_pgvector install 0.4.1 pgvector | |
mac: | |
runs-on: macos-latest | |
if: ${{ !startsWith(github.ref_name, 'windows') }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ankane/setup-postgres@v1 | |
with: | |
postgres-version: 14 | |
- run: | | |
script/install_pgvector install 0.4.1 pgvector | |
windows: | |
runs-on: windows-latest | |
if: ${{ !startsWith(github.ref_name, 'mac') }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ankane/setup-postgres@v1 | |
with: | |
postgres-version: 14 | |
- run: | | |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && ^ | |
nmake /NOLOGO /F Makefile.win && ^ | |
nmake /NOLOGO /F Makefile.win install && ^ | |
nmake /NOLOGO /F Makefile.win installcheck && ^ | |
nmake /NOLOGO /F Makefile.win clean && ^ | |
nmake /NOLOGO /F Makefile.win uninstall | |
shell: cmd |