diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 88ed0bd4f4..1f2339534b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,7 +15,7 @@ on: jobs: Lint-Style: name: Lint & check code style - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Setup Nix Environment @@ -30,7 +30,7 @@ jobs: Test-Nix: name: Test (Nix) - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 defaults: run: # Hack for enabling color output, see: @@ -66,7 +66,7 @@ jobs: matrix: pgVersion: [9.6, 10, 11, 12, 13, 14, 15] name: Test PG ${{ matrix.pgVersion }} (Nix) - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 defaults: run: # Hack for enabling color output, see: @@ -90,7 +90,7 @@ jobs: Test-Memory-Nix: name: Test memory (Nix) - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Setup Nix Environment @@ -103,7 +103,7 @@ jobs: Build-Static-Nix: name: Build Linux static (Nix) - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Setup Nix Environment @@ -146,21 +146,21 @@ jobs: matrix: include: - name: Linux - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 cache: | ~/.stack .stack-work artifact: postgrest-ubuntu-x64 - name: MacOS - runs-on: macos-latest + runs-on: macos-12 cache: | ~/.stack .stack-work artifact: postgrest-macos-x64 - name: Windows - runs-on: windows-latest + runs-on: windows-2022 cache: | ~\AppData\Roaming\stack ~\AppData\Local\Programs\stack @@ -193,7 +193,7 @@ jobs: Get-FreeBSD-CirrusCI: name: Get FreeBSD build from CirrusCI - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Get FreeBSD executable from CirrusCI @@ -215,7 +215,7 @@ jobs: ghc: ['8.10.7', '9.2.4'] fail-fast: false name: Build Linux (Cabal, GHC ${{ matrix.ghc }}) - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: ghcup @@ -242,7 +242,7 @@ jobs: Build-Cabal-Arm: name: Build aarch64 (Cabal) if: "${{ github.event_name == 'push' }}" - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 outputs: remotepath: ${{ steps.Remote-Dir.outputs.remotepath }} env: @@ -298,7 +298,7 @@ jobs: Prepare-Release: name: Prepare release if: startsWith(github.ref, 'refs/tags/v') - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: - Lint-Style - Test-Nix @@ -360,7 +360,7 @@ jobs: name: Release on GitHub permissions: contents: write - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: Prepare-Release env: VERSION: ${{ needs.Prepare-Release.outputs.version }} @@ -419,7 +419,7 @@ jobs: Release-Docker: name: Release on Docker Hub - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: - Build-Cabal-Arm - Prepare-Release @@ -487,7 +487,7 @@ jobs: - Build-Cabal-Arm - Release-Docker if: ${{ always() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/rel-')) }} - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 env: REMOTE_DIR: ${{ needs.Build-Cabal-Arm.outputs.remotepath }} steps: diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index b9d2ec4ef6..ce5dbe6386 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -13,7 +13,7 @@ on: jobs: build: name: Build docs - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26 @@ -22,7 +22,7 @@ jobs: spellcheck: name: Run spellcheck - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26 @@ -31,7 +31,7 @@ jobs: dictcheck: name: Run dictcheck - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26 @@ -41,7 +41,7 @@ jobs: linkcheck: name: Run linkcheck if: github.base_ref == 'main' - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26 diff --git a/.github/workflows/loadtest.yaml b/.github/workflows/loadtest.yaml index 73d7f5ff8a..c5085075c6 100644 --- a/.github/workflows/loadtest.yaml +++ b/.github/workflows/loadtest.yaml @@ -13,7 +13,7 @@ on: jobs: Loadtest-Nix: name: Loadtest (Nix) - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: diff --git a/.github/workflows/report.yaml b/.github/workflows/report.yaml index 065a4d230a..21466b4388 100644 --- a/.github/workflows/report.yaml +++ b/.github/workflows/report.yaml @@ -11,7 +11,7 @@ jobs: name: Loadtest permissions: checks: write - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - name: Download from Artifacts