]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
ci(macos): update brew to install PostgreSQL 17
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 28 Sep 2024 12:40:47 +0000 (14:40 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 29 Sep 2024 13:48:40 +0000 (15:48 +0200)
At the moment CI failed with:

    No available formula with the name "postgresql@17". Did you mean
    postgresql@16, postgresql@15, postgresql@14, postgresql@13,
    postgresql@12, postgresql@11 or postgresql@10?

But the formula appears available at https://formulae.brew.sh/formula/postgresql@17

So probably it's a problem that will disappear in a few days.

.github/workflows/packages-bin.yml
.github/workflows/tests.yml

index 6a3fd62d872c2029d9427334bb75a7ae0c28a7ed..bcb0c66ccccfac597a05ed14c6e8a9a2ca2b7319 100644 (file)
@@ -117,7 +117,11 @@ jobs:
         run: python3 ./tools/build/copy_to_binary.py
 
       - name: Install PostgreSQL on the runner
-        run: brew install gnu-sed postgresql@${PG_VERSION}
+        # As of 2024-09-28 postgresql@17 reports an error but it's available
+        # So in a few days we might be able to drop it.
+        run: |
+          brew update
+          brew install gnu-sed postgresql@${PG_VERSION}
 
       - name: Start PostgreSQL service
         run: brew services start postgresql@${PG_VERSION}
@@ -169,7 +173,9 @@ jobs:
         run: python3 ./tools/build/copy_to_binary.py
 
       - name: Install PostgreSQL on the runner
-        run: brew install gnu-sed postgresql@${PG_VERSION}
+        run: |
+          brew update
+          brew install gnu-sed postgresql@${PG_VERSION}
 
       - name: Start PostgreSQL service
         run: brew services start postgresql@${PG_VERSION}
index f78df9dd6dac6afc31cc1112b895ac9bcf75f236..ea96993e57bfaffe2314ecc05d56e5864651aa94 100644 (file)
@@ -178,7 +178,11 @@ jobs:
           allow-prereleases: true
 
       - name: Install PostgreSQL on the runner
-        run: brew install postgresql@${PG_VERSION}
+        # On 2024-09-28 postgresql@17 installation failed but the package is
+        # available. So, in a few days, we might be able to drop "brew update".
+        run: |
+          brew update
+          brew install postgresql@${PG_VERSION}
 
       - name: Start PostgreSQL service
         run: brew services start postgresql@${PG_VERSION}
@@ -234,7 +238,11 @@ jobs:
           python-version: ${{ matrix.python }}
 
       - name: Install PostgreSQL on the runner
-        run: brew install postgresql@${PG_VERSION}
+        # On 2024-09-28 postgresql@17 installation failed but the package is
+        # available. So, in a few days, we might be able to drop "brew update".
+        run: |
+          brew update
+          brew install gnu-sed postgresql@${PG_VERSION}
 
       - name: Start PostgreSQL service
         run: brew services start postgresql@${PG_VERSION}