From ecf175856f179325e1c033b0b0faee7b1922d110 Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Wed, 28 Feb 2024 19:04:34 +0100 Subject: [PATCH] bump `actions/checkout` and `actions/cache` to `v4` (#5971) Typically, mixing different versions of GitHub actions may lead to hard to fix issues. As many libraries have been updated to use actions v4, also bump our own `actions/checkout@v2`, `actions/checkout@v3`, `actions/cache@v2` and `actions/cache@v3` to their `@v4` equivalents. --- .github/workflows/ci.yml | 12 ++++++------ .github/workflows/cron.yml | 15 +++++++++++---- .github/workflows/nightly_build.yml | 14 +++++++------- .github/workflows/release.yml | 12 ++++++------ 4 files changed, 30 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 88100749a..6cbd43d88 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,12 +68,12 @@ jobs: runs-on: ${{ matrix.builder }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Restore llvm-mingw (Windows) from cache if: runner.os == 'Windows' id: windows-mingw-cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: external/mingw-${{ matrix.target.cpu }} key: 'mingw-llvm-17-${{ matrix.target.cpu }}' @@ -93,7 +93,7 @@ jobs: - name: Restore Nim DLLs dependencies (Windows) from cache if: runner.os == 'Windows' id: windows-dlls-cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: external/dlls-${{ matrix.target.cpu }} key: 'dlls-${{ matrix.target.cpu }}' @@ -182,7 +182,7 @@ jobs: - name: Restore Ethereum Foundation fixtures from cache id: fixtures-cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: fixturesCache key: 'eth2-scenarios-${{ steps.fixtures_version.outputs.fixtures }}' @@ -210,7 +210,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 @@ -229,7 +229,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 2 # In PR, has extra merge commit: ^1 = PR, ^2 = base submodules: 'recursive' diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index 76e788110..3806be5b2 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -1,3 +1,10 @@ +# beacon_chain +# Copyright (c) 2021-2024 Status Research & Development GmbH +# Licensed and distributed under either of +# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). +# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). +# at your option. This file may not be copied, modified, or distributed except according to those terms. + name: Daily on: schedule: @@ -44,13 +51,13 @@ jobs: steps: - name: Checkout if: ${{ github.event_name != 'pull_request' }} - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: unstable - name: Checkout (pull request) if: ${{ github.event_name == 'pull_request' }} - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install build dependencies (Linux i386) if: runner.os == 'Linux' && matrix.target.cpu == 'i386' @@ -85,7 +92,7 @@ jobs: - name: Restore Nim DLLs dependencies (Windows) from cache if: runner.os == 'Windows' id: windows-dlls-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: external/dlls key: 'dlls-${{ matrix.target.cpu }}' @@ -168,7 +175,7 @@ jobs: - name: Restore Ethereum Foundation fixtures from cache id: fixtures-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: fixturesCache key: 'eth2-scenarios-${{ steps.fixtures_version.outputs.fixtures }}' diff --git a/.github/workflows/nightly_build.yml b/.github/workflows/nightly_build.yml index af4078067..019362b8b 100644 --- a/.github/workflows/nightly_build.yml +++ b/.github/workflows/nightly_build.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: unstable @@ -76,7 +76,7 @@ jobs: sudo apt-get -qq -y install binfmt-support qemu-user-static - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: unstable @@ -130,7 +130,7 @@ jobs: sudo apt-get -qq -y install binfmt-support qemu-user-static - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: unstable @@ -176,7 +176,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: unstable @@ -222,7 +222,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: unstable @@ -268,7 +268,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: unstable @@ -315,7 +315,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: unstable diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6d49aba46..cf6184349 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Build project id: make_dist run: | @@ -95,7 +95,7 @@ jobs: sudo apt-get -qq update sudo apt-get -qq -y install binfmt-support qemu-user-static - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Build project id: make_dist run: | @@ -174,7 +174,7 @@ jobs: sudo apt-get -qq update sudo apt-get -qq -y install binfmt-support qemu-user-static - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Build project id: make_dist run: | @@ -246,7 +246,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Build project id: make_dist run: | @@ -280,7 +280,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Build project id: make_dist run: | @@ -314,7 +314,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Build project id: make_dist run: |