Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/actions/free-disk/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Free disk space"
description: "Remove unneeded dependencies to free disk space"

runs:
using: "composite"
steps:
- name: Remove .NET
shell: bash
run: sudo rm -rf /usr/share/dotnet/

- name: Remove Android SDK
shell: bash
run: sudo rm -rf /usr/local/lib/android

- name: Remove Haskell
shell: bash
run: sudo rm -rf /opt/ghc /usr/local/.ghcup
9 changes: 3 additions & 6 deletions .github/workflows/common_hive_reports.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,12 @@ jobs:
echo "Invalid job_type input: ${{ inputs.job_type }}. Allowed values are 'trigger' or 'daily'."
exit 1

- name: Free Disk Space (Ubuntu)
uses: jlumbroso/[email protected]
with:
tool-cache: false
large-packages: false

- name: Checkout sources
uses: actions/checkout@v4

- name: Free Disk Space
uses: ./.github/actions/free-disk

# Set custom args defined in Dockerfile to pin execution-spec-tests versions
# See: https://github.com/ethereum/hive/blob/c2dab60f898b94afe8eeac505f60dcde59205e77/simulators/ethereum/eest/consume-rlp/Dockerfile#L4-L8
- name: Determine hive flags
Expand Down
39 changes: 15 additions & 24 deletions .github/workflows/pr-main_l1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,12 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/[email protected]
with:
tool-cache: false
large-packages: false

- name: Checkout sources
uses: actions/checkout@v4

- name: Free Disk Space
uses: ./.github/actions/free-disk

- name: Setup Rust Environment
uses: ./.github/actions/setup-rust
with:
Expand All @@ -53,14 +51,12 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/[email protected]
with:
tool-cache: false
large-packages: false

- name: Checkout sources
uses: actions/checkout@v4

- name: Free Disk Space
uses: ./.github/actions/free-disk

- name: Setup Rust Environment
uses: ./.github/actions/setup-rust

Expand All @@ -77,13 +73,11 @@ jobs:
name: Build Docker
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/[email protected]
with:
tool-cache: false
large-packages: false

- uses: actions/checkout@v4

- name: Free Disk Space
uses: ./.github/actions/free-disk

- id: docker
name: Build Ethrex Docker Image
uses: ./.github/actions/build-docker
Expand Down Expand Up @@ -269,15 +263,12 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'merge_group' }}
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/[email protected]
with:
tool-cache: false
large-packages: false

- name: Checkout sources
uses: actions/checkout@v4

- name: Free Disk Space
uses: ./.github/actions/free-disk

- name: Setup Rust Environment
uses: ./.github/actions/setup-rust

Expand Down
32 changes: 13 additions & 19 deletions .github/workflows/pr-main_l2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/[email protected]
with:
tool-cache: false
large-packages: false
- name: Checkout sources
uses: actions/checkout@v4

- name: Free Disk Space
uses: ./.github/actions/free-disk

- name: Setup Rust Environment
uses: ./.github/actions/setup-rust
with:
Expand Down Expand Up @@ -227,7 +226,7 @@ jobs:
- name: Deploy contracts
run: |
#
# If this job fails due to connection refused to ethrex_l1 consider increasing the failure retries
# If this job fails due to connection refused to ethrex_l1 consider increasing the failure retries
# in the contract_deployer service in crates/l2/docker-compose.yaml
#
touch cmd/.env
Expand Down Expand Up @@ -316,15 +315,12 @@ jobs:
runs-on: ubuntu-latest
needs: [build-docker, build-docker-l2]
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/[email protected]
with:
tool-cache: false
large-packages: false

- name: Checkout sources
uses: actions/checkout@v4

- name: Free Disk Space
uses: ./.github/actions/free-disk

- name: Setup Rust Environment
uses: ./.github/actions/setup-rust

Expand Down Expand Up @@ -460,7 +456,7 @@ jobs:
- name: Start L1 & Deploy contracts
run: |
#
# If this job fails due to connection refused to ethrex_l1 consider increasing the failure retries
# If this job fails due to connection refused to ethrex_l1 consider increasing the failure retries
# in the contract_deployer service in crates/l2/docker-compose.yaml
#
touch cmd/.env
Expand Down Expand Up @@ -489,14 +485,12 @@ jobs:
name: Integration Test - L2 Dev
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/[email protected]
with:
tool-cache: false
large-packages: false

- name: Checkout sources
uses: actions/checkout@v4

- name: Free Disk Space
uses: ./.github/actions/free-disk

- name: Setup Rust Environment
uses: ./.github/actions/setup-rust

Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/pr-main_l2_prover.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@ jobs:
matrix:
backend: ["sp1", "risc0"]
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/[email protected]
with:
tool-cache: false
large-packages: false

- name: Checkout sources
uses: actions/checkout@v4

- name: Free Disk Space
uses: ./.github/actions/free-disk

- name: Add Rust Cache
uses: Swatinem/rust-cache@v2

Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/tag_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,13 @@ jobs:
l2_suffix: "-l2"
runs-on: ${{ matrix.platform }}
steps:
- name: Free Disk Space (Ubuntu)
if: ${{ matrix.os == 'linux' }}
uses: jlumbroso/[email protected]
with:
tool-cache: false
large-packages: false

- name: Checkout code
uses: actions/checkout@v4

- name: Free Disk Space
if: ${{ matrix.os == 'linux' }}
uses: ./.github/actions/free-disk

- name: Setup Rust Environment
uses: ./.github/actions/setup-rust

Expand Down