Skip to content

Commit 655510b

Browse files
committed
Attempt 2: no more latest, no more default PostgreSQL installed
1 parent 3f6ed8c commit 655510b

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/CI.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,10 @@ jobs:
2424
- latest
2525
os:
2626
- ubuntu-latest
27-
- macOS-latest
2827
- windows-latest
2928
arch:
3029
- x64
3130
- x86
32-
exclude:
33-
# Don't test 32-bit on macOS
34-
- os: macOS-latest
35-
arch: x86
3631
macos-postgresql-path:
3732
- /opt/homebrew/opt/postgresql
3833
include:
@@ -58,10 +53,15 @@ jobs:
5853
version: 1
5954
arch: x64
6055
postgresql-version: '10'
61-
- os: macos-13
56+
- os: macOS-latest
57+
version: 1
58+
arch: aarch64
59+
postgresql-version: '13'
60+
macos-postgresql-path: /opt/homebrew/var/postgresql
61+
- os: macOS-13
6262
version: 1
6363
arch: x64
64-
postgresql-version: latest
64+
postgresql-version: '13'
6565
macos-postgresql-path: /usr/local/var/postgresql
6666
steps:
6767
- uses: actions/checkout@v2
@@ -103,13 +103,16 @@ jobs:
103103
run: echo "PGHOST=localhost" >> $GITHUB_ENV
104104
if: ${{ runner.os == 'Linux' }}
105105
# MacOS
106+
- name: Install PostgreSQL
107+
run: brew install postgresql@${{ matrix.postgresql-version }}
108+
if: ${{ runner.os == 'macOS' }}
106109
- name: Set PGUSER on macOS
107110
run: |
108111
echo "PGUSER=$USER" >> $GITHUB_ENV
109112
echo "LIBPQJL_DATABASE_USER=$USER" >> $GITHUB_ENV
110113
if: ${{ runner.os == 'macOS' }}
111114
- name: Start Homebrew PostgreSQL service
112-
run: pg_ctl -D ${{ matrix.macos-postgresql-path }}@$(psql --version | cut -f3 -d' ' | cut -f1 -d.) start
115+
run: pg_ctl -D ${{ matrix.macos-postgresql-path }}@${{ matrix.postgresql-version }} start
113116
if: ${{ runner.os == 'macOS' }}
114117
# Windows
115118
- name: Add PostgreSQL to Path

0 commit comments

Comments
 (0)