ci: Be explicit about the version of linux and windows runner images
Using the -latest tag is potentially prone to errors, because an update of the tag could break our CI. This recently happend with macos-latest, which we downgraded to macos-12 earlier. Using an explicit version reference makes this problem much less likely - in fact renovate will pick up new versions once they exist and will suggest updates for it. Thus, we will see the failures in a related PR instead of randomly everywhere.
This commit is contained in:
@@ -31,7 +31,7 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
static:
|
static:
|
||||||
name: Nix - Linux static
|
name: Nix - Linux static
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
- name: Setup Nix Environment
|
- name: Setup Nix Environment
|
||||||
@@ -88,7 +88,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- name: Linux
|
- name: Linux
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
cache: |
|
cache: |
|
||||||
~/.stack
|
~/.stack
|
||||||
.stack-work
|
.stack-work
|
||||||
@@ -102,7 +102,7 @@ jobs:
|
|||||||
artifact: postgrest-macos-x64
|
artifact: postgrest-macos-x64
|
||||||
|
|
||||||
- name: Windows
|
- name: Windows
|
||||||
runs-on: windows-latest
|
runs-on: windows-2022
|
||||||
cache: |
|
cache: |
|
||||||
~\AppData\Roaming\stack
|
~\AppData\Roaming\stack
|
||||||
~\AppData\Local\Programs\stack
|
~\AppData\Local\Programs\stack
|
||||||
@@ -141,7 +141,7 @@ jobs:
|
|||||||
|
|
||||||
freebsd:
|
freebsd:
|
||||||
name: Stack - FreeBSD from CirrusCI
|
name: Stack - FreeBSD from CirrusCI
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
- name: Get FreeBSD executable from CirrusCI
|
- name: Get FreeBSD executable from CirrusCI
|
||||||
@@ -164,7 +164,7 @@ jobs:
|
|||||||
ghc: ['9.6.4', '9.8.2']
|
ghc: ['9.6.4', '9.8.2']
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
name: Cabal - Linux GHC ${{ matrix.ghc }}
|
name: Cabal - Linux GHC ${{ matrix.ghc }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
- name: ghcup
|
- name: ghcup
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
lint-style:
|
lint-style:
|
||||||
name: Lint & Style
|
name: Lint & Style
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
- name: Setup Nix Environment
|
- name: Setup Nix Environment
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ jobs:
|
|||||||
arm:
|
arm:
|
||||||
name: Build / Cabal - aarch64 GHC 9.4.8
|
name: Build / Cabal - aarch64 GHC 9.4.8
|
||||||
if: vars.SSH_ARM_ENABLED
|
if: vars.SSH_ARM_ENABLED
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
outputs:
|
outputs:
|
||||||
remotepath: ${{ steps.Remote-Dir.outputs.remotepath }}
|
remotepath: ${{ steps.Remote-Dir.outputs.remotepath }}
|
||||||
env:
|
env:
|
||||||
@@ -117,7 +117,7 @@ jobs:
|
|||||||
if: |
|
if: |
|
||||||
startsWith(github.ref, 'refs/tags/v') &&
|
startsWith(github.ref, 'refs/tags/v') &&
|
||||||
(success() || needs.arm.result == 'skipped')
|
(success() || needs.arm.result == 'skipped')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
needs:
|
needs:
|
||||||
- docs
|
- docs
|
||||||
- test
|
- test
|
||||||
@@ -175,7 +175,7 @@ jobs:
|
|||||||
name: Release / GitHub
|
name: Release / GitHub
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
needs: prepare
|
needs: prepare
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ needs.prepare.outputs.version }}
|
VERSION: ${{ needs.prepare.outputs.version }}
|
||||||
@@ -229,7 +229,7 @@ jobs:
|
|||||||
|
|
||||||
docker:
|
docker:
|
||||||
name: Release / Docker Hub
|
name: Release / Docker Hub
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
needs:
|
needs:
|
||||||
- prepare
|
- prepare
|
||||||
env:
|
env:
|
||||||
@@ -282,7 +282,7 @@ jobs:
|
|||||||
|
|
||||||
docker-arm:
|
docker-arm:
|
||||||
name: Release / Docker Hub Arm
|
name: Release / Docker Hub Arm
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
needs:
|
needs:
|
||||||
- arm
|
- arm
|
||||||
- prepare
|
- prepare
|
||||||
@@ -316,7 +316,7 @@ jobs:
|
|||||||
- arm
|
- arm
|
||||||
- docker-arm
|
- docker-arm
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
env:
|
env:
|
||||||
REMOTE_DIR: ${{ needs.arm.outputs.remotepath }}
|
REMOTE_DIR: ${{ needs.arm.outputs.remotepath }}
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
- name: Setup Nix Environment
|
- name: Setup Nix Environment
|
||||||
@@ -39,7 +39,7 @@ jobs:
|
|||||||
|
|
||||||
spellcheck:
|
spellcheck:
|
||||||
name: Spellcheck
|
name: Spellcheck
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
- name: Setup Nix Environment
|
- name: Setup Nix Environment
|
||||||
@@ -56,7 +56,7 @@ jobs:
|
|||||||
linkcheck:
|
linkcheck:
|
||||||
name: Linkcheck
|
name: Linkcheck
|
||||||
if: github.base_ref == 'main'
|
if: github.base_ref == 'main'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
- name: Setup Nix Environment
|
- name: Setup Nix Environment
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ jobs:
|
|||||||
name: Loadtest
|
name: Loadtest
|
||||||
permissions:
|
permissions:
|
||||||
checks: write
|
checks: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
if: github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.conclusion == 'failure'
|
if: github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.conclusion == 'failure'
|
||||||
steps:
|
steps:
|
||||||
- name: Download from Artifacts
|
- name: Download from Artifacts
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
coverage:
|
coverage:
|
||||||
name: Coverage
|
name: Coverage
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
# Hack for enabling color output, see:
|
# Hack for enabling color output, see:
|
||||||
@@ -69,7 +69,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
pgVersion: ["9_6", 10, 11, 12, 13, 14, 15, 16]
|
pgVersion: ["9_6", 10, 11, 12, 13, 14, 15, 16]
|
||||||
name: PG ${{ matrix.pgVersion }}
|
name: PG ${{ matrix.pgVersion }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
# Hack for enabling color output, see:
|
# Hack for enabling color output, see:
|
||||||
@@ -98,7 +98,7 @@ jobs:
|
|||||||
|
|
||||||
memory:
|
memory:
|
||||||
name: Memory
|
name: Memory
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
- name: Setup Nix Environment
|
- name: Setup Nix Environment
|
||||||
@@ -112,7 +112,7 @@ jobs:
|
|||||||
|
|
||||||
loadtest:
|
loadtest:
|
||||||
name: Loadtest
|
name: Loadtest
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user