Update CI actions to alleviate deprecation warnings (#5321)

* Update and pin all actions to a modern release
This commit is contained in:
antondlr 2024-03-07 13:32:24 +01:00 committed by GitHub
parent 85c3204d70
commit 8cd2b1ca87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 40 additions and 38 deletions

View File

@ -13,7 +13,7 @@ jobs:
build-and-upload-to-s3: build-and-upload-to-s3:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@v4
- name: Setup mdBook - name: Setup mdBook
uses: peaceiris/actions-mdbook@v1 uses: peaceiris/actions-mdbook@v1

View File

@ -71,7 +71,7 @@ jobs:
VERSION_SUFFIX: ${{ needs.extract-version.outputs.VERSION_SUFFIX }} VERSION_SUFFIX: ${{ needs.extract-version.outputs.VERSION_SUFFIX }}
FEATURE_SUFFIX: ${{ matrix.features.version_suffix }} FEATURE_SUFFIX: ${{ matrix.features.version_suffix }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Update Rust - name: Update Rust
if: env.SELF_HOSTED_RUNNERS == 'false' if: env.SELF_HOSTED_RUNNERS == 'false'
run: rustup update stable run: rustup update stable
@ -106,10 +106,10 @@ jobs:
- name: Set up Docker Buildx - name: Set up Docker Buildx
if: env.SELF_HOSTED_RUNNERS == 'false' if: env.SELF_HOSTED_RUNNERS == 'false'
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v3
- name: Build and push - name: Build and push
uses: docker/build-push-action@v4 uses: docker/build-push-action@v5
with: with:
file: ./Dockerfile.cross file: ./Dockerfile.cross
context: . context: .
@ -129,7 +129,7 @@ jobs:
VERSION_SUFFIX: ${{ needs.extract-version.outputs.VERSION_SUFFIX }} VERSION_SUFFIX: ${{ needs.extract-version.outputs.VERSION_SUFFIX }}
steps: steps:
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v3
- name: Dockerhub login - name: Dockerhub login
run: | run: |
@ -148,7 +148,7 @@ jobs:
VERSION: ${{ needs.extract-version.outputs.VERSION }} VERSION: ${{ needs.extract-version.outputs.VERSION }}
VERSION_SUFFIX: ${{ needs.extract-version.outputs.VERSION_SUFFIX }} VERSION_SUFFIX: ${{ needs.extract-version.outputs.VERSION_SUFFIX }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Dockerhub login - name: Dockerhub login
run: | run: |
echo "${DOCKER_PASSWORD}" | docker login --username ${DOCKER_USERNAME} --password-stdin echo "${DOCKER_PASSWORD}" | docker login --username ${DOCKER_USERNAME} --password-stdin

View File

@ -20,7 +20,7 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Run mdbook server - name: Run mdbook server
run: | run: |

View File

@ -24,7 +24,7 @@ jobs:
# Enable portable to prevent issues with caching `blst` for the wrong CPU type # Enable portable to prevent issues with caching `blst` for the wrong CPU type
FEATURES: portable,jemalloc FEATURES: portable,jemalloc
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Get latest version of stable Rust - name: Get latest version of stable Rust
run: rustup update stable run: rustup update stable
@ -46,7 +46,7 @@ jobs:
echo "$(brew --prefix)/opt/gnu-sed/libexec/gnubin" >> $GITHUB_PATH echo "$(brew --prefix)/opt/gnu-sed/libexec/gnubin" >> $GITHUB_PATH
echo "$(brew --prefix)/opt/grep/libexec/gnubin" >> $GITHUB_PATH echo "$(brew --prefix)/opt/grep/libexec/gnubin" >> $GITHUB_PATH
# https://github.com/actions/cache/blob/main/examples.md#rust---cargo # https://github.com/actions/cache/blob/main/examples.md#rust---cargo
- uses: actions/cache@v3 - uses: actions/cache@v4
id: cache-cargo id: cache-cargo
with: with:
path: | path: |
@ -95,6 +95,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: ["run-local-testnet"] needs: ["run-local-testnet"]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Check that success job is dependent on all others - name: Check that success job is dependent on all others
run: ./scripts/ci/check-success-job.sh ./.github/workflows/local-testnet.yml local-testnet-success run: ./scripts/ci/check-success-job.sh ./.github/workflows/local-testnet.yml local-testnet-success

View File

@ -68,7 +68,7 @@ jobs:
needs: extract-version needs: extract-version
steps: steps:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Get latest version of stable Rust - name: Get latest version of stable Rust
if: env.SELF_HOSTED_RUNNERS == 'false' if: env.SELF_HOSTED_RUNNERS == 'false'
run: rustup update stable run: rustup update stable
@ -172,17 +172,19 @@ jobs:
# This is required to share artifacts between different jobs # This is required to share artifacts between different jobs
# ======================================================================= # =======================================================================
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz name: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz
path: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz path: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz
compression-level: 0
- name: Upload signature - name: Upload signature
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz.asc name: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz.asc
path: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz.asc path: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz.asc
compression-level: 0
draft-release: draft-release:
name: Draft Release name: Draft Release
@ -193,7 +195,7 @@ jobs:
steps: steps:
# This is necessary for generating the changelog. It has to come before "Download Artifacts" or else it deletes the artifacts. # This is necessary for generating the changelog. It has to come before "Download Artifacts" or else it deletes the artifacts.
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
@ -202,7 +204,7 @@ jobs:
# ============================== # ==============================
- name: Download artifacts - name: Download artifacts
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
# ============================== # ==============================
# Create release draft # Create release draft

View File

@ -41,7 +41,7 @@ jobs:
# Use self-hosted runners only on the sigp repo. # Use self-hosted runners only on the sigp repo.
runs-on: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "CI", "large"]') || 'ubuntu-latest' }} runs-on: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "CI", "large"]') || 'ubuntu-latest' }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Get latest version of stable Rust - name: Get latest version of stable Rust
if: env.SELF_HOSTED_RUNNERS == 'false' if: env.SELF_HOSTED_RUNNERS == 'false'
uses: moonrepo/setup-rust@v1 uses: moonrepo/setup-rust@v1
@ -65,7 +65,7 @@ jobs:
name: release-tests-windows name: release-tests-windows
runs-on: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "windows", "CI"]') || 'windows-2019' }} runs-on: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "windows", "CI"]') || 'windows-2019' }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Get latest version of stable Rust - name: Get latest version of stable Rust
if: env.SELF_HOSTED_RUNNERS == 'false' if: env.SELF_HOSTED_RUNNERS == 'false'
uses: moonrepo/setup-rust@v1 uses: moonrepo/setup-rust@v1
@ -102,7 +102,7 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Get latest version of stable Rust - name: Get latest version of stable Rust
if: env.SELF_HOSTED_RUNNERS == 'false' if: env.SELF_HOSTED_RUNNERS == 'false'
uses: moonrepo/setup-rust@v1 uses: moonrepo/setup-rust@v1
@ -121,7 +121,7 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Get latest version of stable Rust - name: Get latest version of stable Rust
uses: moonrepo/setup-rust@v1 uses: moonrepo/setup-rust@v1
with: with:
@ -136,7 +136,7 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Get latest version of stable Rust - name: Get latest version of stable Rust
uses: moonrepo/setup-rust@v1 uses: moonrepo/setup-rust@v1
with: with:
@ -151,7 +151,7 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Get latest version of stable Rust - name: Get latest version of stable Rust
uses: moonrepo/setup-rust@v1 uses: moonrepo/setup-rust@v1
with: with:
@ -167,7 +167,7 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Get latest version of stable Rust - name: Get latest version of stable Rust
if: env.SELF_HOSTED_RUNNERS == 'false' if: env.SELF_HOSTED_RUNNERS == 'false'
uses: moonrepo/setup-rust@v1 uses: moonrepo/setup-rust@v1
@ -188,7 +188,7 @@ jobs:
name: state-transition-vectors-ubuntu name: state-transition-vectors-ubuntu
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Get latest version of stable Rust - name: Get latest version of stable Rust
uses: moonrepo/setup-rust@v1 uses: moonrepo/setup-rust@v1
with: with:
@ -203,7 +203,7 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Get latest version of stable Rust - name: Get latest version of stable Rust
if: env.SELF_HOSTED_RUNNERS == 'false' if: env.SELF_HOSTED_RUNNERS == 'false'
uses: moonrepo/setup-rust@v1 uses: moonrepo/setup-rust@v1
@ -220,7 +220,7 @@ jobs:
name: dockerfile-ubuntu name: dockerfile-ubuntu
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Build the root Dockerfile - name: Build the root Dockerfile
run: docker build --build-arg FEATURES=portable -t lighthouse:local . run: docker build --build-arg FEATURES=portable -t lighthouse:local .
- name: Test the built image - name: Test the built image
@ -229,7 +229,7 @@ jobs:
name: eth1-simulator-ubuntu name: eth1-simulator-ubuntu
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Get latest version of stable Rust - name: Get latest version of stable Rust
uses: moonrepo/setup-rust@v1 uses: moonrepo/setup-rust@v1
with: with:
@ -245,7 +245,7 @@ jobs:
name: merge-transition-ubuntu name: merge-transition-ubuntu
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Get latest version of stable Rust - name: Get latest version of stable Rust
uses: moonrepo/setup-rust@v1 uses: moonrepo/setup-rust@v1
with: with:
@ -261,7 +261,7 @@ jobs:
name: no-eth1-simulator-ubuntu name: no-eth1-simulator-ubuntu
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Get latest version of stable Rust - name: Get latest version of stable Rust
uses: moonrepo/setup-rust@v1 uses: moonrepo/setup-rust@v1
with: with:
@ -273,7 +273,7 @@ jobs:
name: syncing-simulator-ubuntu name: syncing-simulator-ubuntu
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Get latest version of stable Rust - name: Get latest version of stable Rust
uses: moonrepo/setup-rust@v1 uses: moonrepo/setup-rust@v1
with: with:
@ -292,7 +292,7 @@ jobs:
# Enable portable to prevent issues with caching `blst` for the wrong CPU type # Enable portable to prevent issues with caching `blst` for the wrong CPU type
FEATURES: jemalloc,portable FEATURES: jemalloc,portable
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Get latest version of stable Rust - name: Get latest version of stable Rust
if: env.SELF_HOSTED_RUNNERS == 'false' if: env.SELF_HOSTED_RUNNERS == 'false'
uses: moonrepo/setup-rust@v1 uses: moonrepo/setup-rust@v1
@ -325,7 +325,7 @@ jobs:
name: execution-engine-integration-ubuntu name: execution-engine-integration-ubuntu
runs-on: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "CI", "small"]') || 'ubuntu-latest' }} runs-on: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "CI", "small"]') || 'ubuntu-latest' }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Get latest version of stable Rust - name: Get latest version of stable Rust
if: env.SELF_HOSTED_RUNNERS == 'false' if: env.SELF_HOSTED_RUNNERS == 'false'
uses: moonrepo/setup-rust@v1 uses: moonrepo/setup-rust@v1
@ -346,7 +346,7 @@ jobs:
env: env:
CARGO_INCREMENTAL: 1 CARGO_INCREMENTAL: 1
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Get latest version of stable Rust - name: Get latest version of stable Rust
uses: moonrepo/setup-rust@v1 uses: moonrepo/setup-rust@v1
with: with:
@ -372,7 +372,7 @@ jobs:
name: check-msrv name: check-msrv
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Install Rust at Minimum Supported Rust Version (MSRV) - name: Install Rust at Minimum Supported Rust Version (MSRV)
run: | run: |
metadata=$(cargo metadata --no-deps --format-version 1) metadata=$(cargo metadata --no-deps --format-version 1)
@ -384,7 +384,7 @@ jobs:
name: cargo-udeps name: cargo-udeps
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Get latest version of nightly Rust - name: Get latest version of nightly Rust
uses: moonrepo/setup-rust@v1 uses: moonrepo/setup-rust@v1
with: with:
@ -406,7 +406,7 @@ jobs:
name: compile-with-beta-compiler name: compile-with-beta-compiler
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Install dependencies - name: Install dependencies
run: sudo apt update && sudo apt install -y git gcc g++ make cmake pkg-config llvm-dev libclang-dev clang run: sudo apt update && sudo apt install -y git gcc g++ make cmake pkg-config llvm-dev libclang-dev clang
- name: Use Rust beta - name: Use Rust beta
@ -417,7 +417,7 @@ jobs:
name: cli-check name: cli-check
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Get latest version of stable Rust - name: Get latest version of stable Rust
uses: moonrepo/setup-rust@v1 uses: moonrepo/setup-rust@v1
with: with:
@ -455,6 +455,6 @@ jobs:
'cli-check', 'cli-check',
] ]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Check that success job is dependent on all others - name: Check that success job is dependent on all others
run: ./scripts/ci/check-success-job.sh ./.github/workflows/test-suite.yml test-suite-success run: ./scripts/ci/check-success-job.sh ./.github/workflows/test-suite.yml test-suite-success