From 2de9999c354d36049f0894a5ac912633dbcbbc28 Mon Sep 17 00:00:00 2001 From: mrekucci Date: Fri, 19 Jul 2024 14:04:51 +0200 Subject: [PATCH] chore: upgrade GitHub runners to version ubuntu-24.04 (#254) --- .github/workflows/artifacts.yml | 4 ++-- .github/workflows/ci.yml | 12 ++++++------ .github/workflows/infrastructure.yml | 4 +++- .github/workflows/releaser.yml | 2 +- .../templates/jobs/contracts-deployer.nomad.j2 | 4 ++-- 5 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index 8be5aeb31..3503210b2 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -8,7 +8,7 @@ permissions: jobs: upload_contracts: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 30 steps: @@ -49,7 +49,7 @@ jobs: --tagging 'TagSet=[{Key=AutoDelete,Value=true}]' upload_binaries: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 30 strategy: matrix: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b847ba0ba..aa42f7891 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ concurrency: jobs: commitlint: name: Check Commit Message - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 30 steps: @@ -55,7 +55,7 @@ jobs: go-modules: name: Test and Build Go Modules - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 60 steps: @@ -127,7 +127,7 @@ jobs: foundry: name: Foundry Checks and Reports - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 30 defaults: run: @@ -160,7 +160,7 @@ jobs: contracts: name: Test and Build Contracts Scripts - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 30 defaults: run: @@ -188,7 +188,7 @@ jobs: - name: Install Hardhat run: npm install -g hardhat - + - name: Install solhint run: npm install -g solhint @@ -220,7 +220,7 @@ jobs: git diff --name-only --exit-code . || (echo "Generated files not in parity with the source files." && exit 1) git reset --hard HEAD working-directory: contracts-abi - + - name: Run solhint solidity linter run: solhint '**/*.sol' working-directory: contracts diff --git a/.github/workflows/infrastructure.yml b/.github/workflows/infrastructure.yml index 71996ac66..b20d9ba84 100644 --- a/.github/workflows/infrastructure.yml +++ b/.github/workflows/infrastructure.yml @@ -44,7 +44,7 @@ concurrency: jobs: cluster: name: Setup and Test Nomad Cluster - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 180 steps: @@ -134,6 +134,8 @@ jobs: sudo add-apt-repository --yes ppa:ethereum/ethereum sudo apt-get update sudo apt-get install --yes goreleaser ethereum + python3 -m venv primevenv + source primevenv/bin/activate pip install boto3 botocore pipx inject ansible-core botocore boto3 diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml index 649a8b3ac..0cdc1b94f 100644 --- a/.github/workflows/releaser.yml +++ b/.github/workflows/releaser.yml @@ -11,7 +11,7 @@ permissions: jobs: release: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 60 strategy: matrix: diff --git a/infrastructure/nomad/playbooks/templates/jobs/contracts-deployer.nomad.j2 b/infrastructure/nomad/playbooks/templates/jobs/contracts-deployer.nomad.j2 index 788aaf149..cbd0700a9 100644 --- a/infrastructure/nomad/playbooks/templates/jobs/contracts-deployer.nomad.j2 +++ b/infrastructure/nomad/playbooks/templates/jobs/contracts-deployer.nomad.j2 @@ -69,7 +69,7 @@ job "{{ job.name }}" { {% endfor %} artifact { - source = "https://nodejs.org/dist/v18.16.1/node-v18.16.1-linux-{{ 'x64' if target_system_architecture == 'x86_64' else 'arm64' }}.tar.xz" + source = "https://nodejs.org/dist/v18.20.4/node-v18.20.4-linux-{{ 'x64' if target_system_architecture == 'x86_64' else 'arm64' }}.tar.xz" options { archive = false } @@ -135,7 +135,7 @@ job "{{ job.name }}" { tar \ --extract \ - --file local/node-v18.16.1-linux-{{ 'x64' if target_system_architecture == 'x86_64' else 'arm64' }}.tar.xz \ + --file local/node-v18.20.4-linux-{{ 'x64' if target_system_architecture == 'x86_64' else 'arm64' }}.tar.xz \ --directory /usr/local \ --strip-components=1