Skip to content

Commit

Permalink
ci: Use explicit runner image versions
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangwalther committed Apr 22, 2024
1 parent d41ad6d commit 2c5f61a
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cachix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
matrix:
include:
- os: Linux
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
- os: MacOS
runs-on: macos-latest
runs-on: macos-12
name: Seed ${{ matrix.os }}
runs-on: ${{ matrix.runs-on }}
steps:
Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
matrix:
pgVersion: [9.6, 10, 11, 12, 13, 14, 15, 16]
name: Test PG ${{ matrix.pgVersion }} (Nix)
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
defaults:
run:
# Hack for enabling color output, see:
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:

Build-Macos-Nix:
name: Build MacOS (Nix)
runs-on: macos-latest
runs-on: macos-12
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Nix Environment
Expand All @@ -151,21 +151,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
Expand Down Expand Up @@ -198,7 +198,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
Expand All @@ -220,7 +220,7 @@ jobs:
ghc: ['9.0.2', '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: Workaround runner image issue
Expand Down Expand Up @@ -254,7 +254,7 @@ jobs:
fail-fast: false
name: Build aarch64 (Cabal, GHC ${{ matrix.ghc }})
if: "${{ github.event_name == 'push' }}"
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
outputs:
remotepath: ${{ steps.Remote-Dir.outputs.remotepath }}
env:
Expand Down Expand Up @@ -311,7 +311,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
Expand Down Expand Up @@ -373,7 +373,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 }}
Expand Down Expand Up @@ -432,7 +432,7 @@ jobs:
Release-Docker:
name: Release on Docker Hub
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs:
- Prepare-Release
env:
Expand Down Expand Up @@ -483,7 +483,7 @@ jobs:

Release-Docker-Arm:
name: Release Arm Builds on Docker Hub
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs:
- Build-Cabal-Arm
- Prepare-Release
Expand Down Expand Up @@ -519,7 +519,7 @@ jobs:
needs.Build-Cabal-Arm.result == 'failure' ||
needs.Build-Cabal-Arm.result == 'cancelled' ||
(needs.Build-Cabal-Arm.result == 'success' && !startsWith(github.ref, 'refs/tags/v'))
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
env:
REMOTE_DIR: ${{ needs.Build-Cabal-Arm.outputs.remotepath }}
steps:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/loadtest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c5f61a

Please sign in to comment.