@@ -24,15 +24,10 @@ jobs:
24
24
- latest
25
25
os :
26
26
- ubuntu-latest
27
- - macOS-latest
28
27
- windows-latest
29
28
arch :
30
29
- x64
31
30
- x86
32
- exclude :
33
- # Don't test 32-bit on macOS
34
- - os : macOS-latest
35
- arch : x86
36
31
macos-postgresql-path :
37
32
- /opt/homebrew/opt/postgresql
38
33
include :
@@ -58,10 +53,15 @@ jobs:
58
53
version : 1
59
54
arch : x64
60
55
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
62
62
version : 1
63
63
arch : x64
64
- postgresql-version : latest
64
+ postgresql-version : ' 13 '
65
65
macos-postgresql-path : /usr/local/var/postgresql
66
66
steps :
67
67
- uses : actions/checkout@v2
@@ -103,13 +103,16 @@ jobs:
103
103
run : echo "PGHOST=localhost" >> $GITHUB_ENV
104
104
if : ${{ runner.os == 'Linux' }}
105
105
# MacOS
106
+ - name : Install PostgreSQL
107
+ run : brew install postgresql@${{ matrix.postgresql-version }}
108
+ if : ${{ runner.os == 'macOS' }}
106
109
- name : Set PGUSER on macOS
107
110
run : |
108
111
echo "PGUSER=$USER" >> $GITHUB_ENV
109
112
echo "LIBPQJL_DATABASE_USER=$USER" >> $GITHUB_ENV
110
113
if : ${{ runner.os == 'macOS' }}
111
114
- 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
113
116
if : ${{ runner.os == 'macOS' }}
114
117
# Windows
115
118
- name : Add PostgreSQL to Path
0 commit comments