From: Daniele Varrazzo Date: Sat, 28 Sep 2024 12:40:47 +0000 (+0200) Subject: ci(macos): update brew to install PostgreSQL 17 X-Git-Tag: 3.2.3~1^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d06613299aee124be6e673b238bbe747bad25978;p=thirdparty%2Fpsycopg.git ci(macos): update brew to install PostgreSQL 17 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. --- diff --git a/.github/workflows/packages-bin.yml b/.github/workflows/packages-bin.yml index 6a3fd62d8..bcb0c66cc 100644 --- a/.github/workflows/packages-bin.yml +++ b/.github/workflows/packages-bin.yml @@ -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} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f78df9dd6..ea96993e5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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}