Skip to content

Commit

Permalink
Actualuze postgresql versions in CI matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Apr 8, 2024
1 parent b4f14a6 commit 9eb4a1e
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,35 @@ name: CI
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
include:
- { libversion: master, postgresql: 11, cc: gcc }
- { libversion: master, postgresql: 16, cc: gcc }
# libversion versions
- { libversion: 3.0.1, postgresql: 11, cc: gcc }
- { libversion: 3.0.0, postgresql: 11, cc: gcc }
- { libversion: 3.0.1, postgresql: 16, cc: gcc }
- { libversion: 3.0.0, postgresql: 16, cc: gcc }
# compilers
- { libversion: master, postgresql: 11, cc: clang }
- { libversion: master, postgresql: 16, cc: clang }
# postgresql versions
- { libversion: master, postgresql: 9.6, cc: gcc }
- { libversion: master, postgresql: 10, cc: gcc }
- { libversion: master, postgresql: 11, cc: gcc }
- { libversion: master, postgresql: 12, cc: gcc }
- { libversion: master, postgresql: 13, cc: gcc }
- { libversion: master, postgresql: 14, cc: gcc }
- { libversion: master, postgresql: 15, cc: gcc }
- { libversion: master, postgresql: 16, cc: gcc }
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup postgresql repository
run: |
sudo install -d /usr/share/postgresql-common/pgdg
sudo curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc
sudo sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
- name: Install postgresql
run: |
sudo apt-get update
sudo apt-get purge 'postgresql*' >/dev/null 2>&1 || true
sudo apt-get install postgresql-${{ matrix.postgresql }} postgresql-client-${{ matrix.postgresql }} postgresql-server-dev-${{ matrix.postgresql }}
sudo pg_ctlcluster ${{ matrix.postgresql }} main restart
Expand Down

0 comments on commit 9eb4a1e

Please sign in to comment.