Skip to content

Commit 3f6ed8c

Browse files
committed
Fix macOS CI
1 parent 14cb372 commit 3f6ed8c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/CI.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
# Don't test 32-bit on macOS
3434
- os: macOS-latest
3535
arch: x86
36+
macos-postgresql-path:
37+
- /opt/homebrew/opt/postgresql
3638
include:
3739
# Add a LTS job just to make sure we still support it
3840
- os: ubuntu-latest
@@ -56,6 +58,11 @@ jobs:
5658
version: 1
5759
arch: x64
5860
postgresql-version: '10'
61+
- os: macos-13
62+
version: 1
63+
arch: x64
64+
postgresql-version: latest
65+
macos-postgresql-path: /usr/local/var/postgresql
5966
steps:
6067
- uses: actions/checkout@v2
6168
- uses: julia-actions/setup-julia@v1
@@ -102,7 +109,7 @@ jobs:
102109
echo "LIBPQJL_DATABASE_USER=$USER" >> $GITHUB_ENV
103110
if: ${{ runner.os == 'macOS' }}
104111
- name: Start Homebrew PostgreSQL service
105-
run: pg_ctl -D /usr/local/var/postgresql@$(psql --version | cut -f3 -d' ' | cut -f1 -d.) start
112+
run: pg_ctl -D ${{ matrix.macos-postgresql-path }}@$(psql --version | cut -f3 -d' ' | cut -f1 -d.) start
106113
if: ${{ runner.os == 'macOS' }}
107114
# Windows
108115
- name: Add PostgreSQL to Path

0 commit comments

Comments
 (0)