From 88e3806ed1a1af8b1de33bf232466a0ae9508915 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Thu, 9 Nov 2023 16:15:03 +0100 Subject: [PATCH] Pin GitHub Actions runners to a specific version --- .github/workflows/ci.yml | 4 ++-- .github/workflows/format-code.yml | 2 +- .github/workflows/hello-world.yml | 2 +- .github/workflows/verify-code-formatting.yml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6979e70b8..655953377 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: linux-latest: name: Linux Latest Config needs: [linux-min] - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: matrix: compiler: [clang++, g++] @@ -62,7 +62,7 @@ jobs: windows: name: Windows needs: [linux-min] - runs-on: windows-latest + runs-on: windows-2022 steps: - uses: actions/checkout@v4 - name: Run Tests diff --git a/.github/workflows/format-code.yml b/.github/workflows/format-code.yml index 1790710fd..2270dffea 100644 --- a/.github/workflows/format-code.yml +++ b/.github/workflows/format-code.yml @@ -7,7 +7,7 @@ on: jobs: format: name: "Format C++ code" - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: github.event.issue.pull_request != '' && (contains(github.event.comment.body, '/format') || contains(github.event.comment.body, '/clang-format')) steps: - name: "Checkout code" diff --git a/.github/workflows/hello-world.yml b/.github/workflows/hello-world.yml index 41f3abe2a..6787a9360 100644 --- a/.github/workflows/hello-world.yml +++ b/.github/workflows/hello-world.yml @@ -19,7 +19,7 @@ on: jobs: hello-world-fails: name: Hello World Fails - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - name: Check Hello World Fails diff --git a/.github/workflows/verify-code-formatting.yml b/.github/workflows/verify-code-formatting.yml index 3169a7098..2f92d967b 100644 --- a/.github/workflows/verify-code-formatting.yml +++ b/.github/workflows/verify-code-formatting.yml @@ -18,7 +18,7 @@ on: jobs: verify-code-formatting: - runs-on: [ubuntu-latest] + runs-on: [ubuntu-22.04] steps: - name: "Checkout code" uses: actions/checkout@v4