ci: Use explicit runner image versions

This commit is contained in:
Wolfgang Walther
2024-04-22 21:26:23 +02:00
parent d41ad6d44a
commit 2c5f61a9d8
5 changed files with 25 additions and 25 deletions
+2 -2
View File
@@ -22,9 +22,9 @@ jobs:
matrix: matrix:
include: include:
- os: Linux - os: Linux
runs-on: ubuntu-latest runs-on: ubuntu-22.04
- os: MacOS - os: MacOS
runs-on: macos-latest runs-on: macos-12
name: Seed ${{ matrix.os }} name: Seed ${{ matrix.os }}
runs-on: ${{ matrix.runs-on }} runs-on: ${{ matrix.runs-on }}
steps: steps:
+17 -17
View File
@@ -15,7 +15,7 @@ on:
jobs: jobs:
Lint-Style: Lint-Style:
name: Lint & check code style name: Lint & check code 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
@@ -30,7 +30,7 @@ jobs:
Test-Nix: Test-Nix:
name: Test (Nix) name: Test (Nix)
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:
@@ -66,7 +66,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: Test PG ${{ matrix.pgVersion }} (Nix) name: Test PG ${{ matrix.pgVersion }} (Nix)
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:
@@ -90,7 +90,7 @@ jobs:
Test-Memory-Nix: Test-Memory-Nix:
name: Test memory (Nix) name: Test memory (Nix)
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
@@ -103,7 +103,7 @@ jobs:
Build-Static-Nix: Build-Static-Nix:
name: Build Linux static (Nix) name: Build Linux static (Nix)
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
@@ -134,7 +134,7 @@ jobs:
Build-Macos-Nix: Build-Macos-Nix:
name: Build MacOS (Nix) name: Build MacOS (Nix)
runs-on: macos-latest runs-on: macos-12
steps: steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Nix Environment - name: Setup Nix Environment
@@ -151,21 +151,21 @@ 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
artifact: postgrest-ubuntu-x64 artifact: postgrest-ubuntu-x64
- name: MacOS - name: MacOS
runs-on: macos-latest runs-on: macos-12
cache: | cache: |
~/.stack ~/.stack
.stack-work .stack-work
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
@@ -198,7 +198,7 @@ jobs:
Get-FreeBSD-CirrusCI: Get-FreeBSD-CirrusCI:
name: Get FreeBSD build from CirrusCI name: Get FreeBSD build 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
@@ -220,7 +220,7 @@ jobs:
ghc: ['9.0.2', '9.2.4'] ghc: ['9.0.2', '9.2.4']
fail-fast: false fail-fast: false
name: Build Linux (Cabal, GHC ${{ matrix.ghc }}) name: Build Linux (Cabal, 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: Workaround runner image issue - name: Workaround runner image issue
@@ -254,7 +254,7 @@ jobs:
fail-fast: false fail-fast: false
name: Build aarch64 (Cabal, GHC ${{ matrix.ghc }}) name: Build aarch64 (Cabal, GHC ${{ matrix.ghc }})
if: "${{ github.event_name == 'push' }}" if: "${{ github.event_name == 'push' }}"
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:
@@ -311,7 +311,7 @@ jobs:
Prepare-Release: Prepare-Release:
name: Prepare release name: Prepare release
if: startsWith(github.ref, 'refs/tags/v') if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest runs-on: ubuntu-22.04
needs: needs:
- Lint-Style - Lint-Style
- Test-Nix - Test-Nix
@@ -373,7 +373,7 @@ jobs:
name: Release on GitHub name: Release on GitHub
permissions: permissions:
contents: write contents: write
runs-on: ubuntu-latest runs-on: ubuntu-22.04
needs: Prepare-Release needs: Prepare-Release
env: env:
VERSION: ${{ needs.Prepare-Release.outputs.version }} VERSION: ${{ needs.Prepare-Release.outputs.version }}
@@ -432,7 +432,7 @@ jobs:
Release-Docker: Release-Docker:
name: Release on Docker Hub name: Release on Docker Hub
runs-on: ubuntu-latest runs-on: ubuntu-22.04
needs: needs:
- Prepare-Release - Prepare-Release
env: env:
@@ -483,7 +483,7 @@ jobs:
Release-Docker-Arm: Release-Docker-Arm:
name: Release Arm Builds on Docker Hub name: Release Arm Builds on Docker Hub
runs-on: ubuntu-latest runs-on: ubuntu-22.04
needs: needs:
- Build-Cabal-Arm - Build-Cabal-Arm
- Prepare-Release - Prepare-Release
@@ -519,7 +519,7 @@ jobs:
needs.Build-Cabal-Arm.result == 'failure' || needs.Build-Cabal-Arm.result == 'failure' ||
needs.Build-Cabal-Arm.result == 'cancelled' || needs.Build-Cabal-Arm.result == 'cancelled' ||
(needs.Build-Cabal-Arm.result == 'success' && !startsWith(github.ref, 'refs/tags/v')) (needs.Build-Cabal-Arm.result == 'success' && !startsWith(github.ref, 'refs/tags/v'))
runs-on: ubuntu-latest runs-on: ubuntu-22.04
env: env:
REMOTE_DIR: ${{ needs.Build-Cabal-Arm.outputs.remotepath }} REMOTE_DIR: ${{ needs.Build-Cabal-Arm.outputs.remotepath }}
steps: steps:
+4 -4
View File
@@ -13,7 +13,7 @@ on:
jobs: jobs:
build: build:
name: Build docs name: Build docs
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
- uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26 - uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
@@ -22,7 +22,7 @@ jobs:
spellcheck: spellcheck:
name: Run spellcheck name: Run 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
- uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26 - uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
@@ -31,7 +31,7 @@ jobs:
dictcheck: dictcheck:
name: Run dictcheck name: Run dictcheck
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
- uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26 - uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
@@ -41,7 +41,7 @@ jobs:
linkcheck: linkcheck:
name: Run linkcheck name: Run 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
- uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26 - uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
+1 -1
View File
@@ -13,7 +13,7 @@ on:
jobs: jobs:
Loadtest-Nix: Loadtest-Nix:
name: Loadtest (Nix) name: Loadtest (Nix)
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:
+1 -1
View File
@@ -11,7 +11,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' }} if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps: steps:
- name: Download from Artifacts - name: Download from Artifacts