Skip to content

Commit

Permalink
Added support for macos-13 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Jun 11, 2023
1 parent cf6850f commit e0d8b58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, ubuntu-20.04, macos-12, macos-11]
os: [ubuntu-22.04, ubuntu-20.04, macos-13, macos-12, macos-11]
postgres-version: [15, 14, 13, 12, 11]
include:
- os: ubuntu-22.04
Expand Down
8 changes: 5 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@ if (isMac()) {
bin = `/usr/local/opt/postgresql@${postgresVersion}/bin`;
let dataDir = `/usr/local/var/postgresql@${postgresVersion}`;

if (postgresVersion != 14) {
// remove previous version
run(`brew unlink postgresql@14`);
if (postgresVersion != 14 || process.env['ImageOS'] == 'macos13') {
if (process.env['ImageOS'] != 'macos13') {
// remove previous version
run(`brew unlink postgresql@14`);
}

// update Homebrew if needed
if (process.env['ImageOS'] == 'macos1015' && postgresVersion == 15) {
Expand Down

0 comments on commit e0d8b58

Please sign in to comment.