Skip to content

Commit d15babe

Browse files
committed
Add macOS 13 support
The macOS 13 runner image isn't shipped with pre-installed PostgreSQL server. Even though it has Beta status, it'd be nice to support this runner image too. Reported-by: baconcheese113 Fixes: #16
1 parent 510dee7 commit d15babe

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
- ubuntu-latest
1818
- windows-latest
1919
- macos-latest
20+
- macos-13
21+
- macos-13-arm64
2022
steps:
2123
- uses: actions/checkout@v4
2224

action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ runs:
3838
elif [ "$RUNNER_OS" == "Windows" ]; then
3939
echo "$PGBIN" >> $GITHUB_PATH
4040
echo "PQ_LIB_DIR=$PGROOT\lib" >> $GITHUB_ENV
41+
elif [ "$RUNNER_OS" == "macOS" ]; then
42+
case "$(sw_vers -productVersion)" in
43+
13.*)
44+
# Unfortunately, the macOS 13 runner image doesn't come w/
45+
# pre-installed PostgreSQL server.
46+
brew install postgresql@14
47+
;;
48+
esac
4149
fi
4250
shell: bash
4351

0 commit comments

Comments
 (0)