Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
7 changes: 2 additions & 5 deletions .github/workflows/common_hive_reports.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,8 @@ 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: Free Disk Space
uses: ./.github/actions/free-disk

- name: Checkout sources
uses: actions/checkout@v4
Expand Down
28 changes: 8 additions & 20 deletions .github/workflows/pr-main_l1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ 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: Free Disk Space
uses: ./.github/actions/free-disk

- name: Checkout sources
uses: actions/checkout@v4
Expand All @@ -53,11 +50,8 @@ 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: Free Disk Space
uses: ./.github/actions/free-disk

- name: Checkout sources
uses: actions/checkout@v4
Expand All @@ -77,11 +71,8 @@ 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
- name: Free Disk Space
uses: ./.github/actions/free-disk

- uses: actions/checkout@v4
- id: docker
Expand Down Expand Up @@ -269,11 +260,8 @@ 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: Free Disk Space
uses: ./.github/actions/free-disk

- name: Checkout sources
uses: actions/checkout@v4
Expand Down
25 changes: 8 additions & 17 deletions .github/workflows/pr-main_l2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,8 @@ 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: Free Disk Space
uses: ./.github/actions/free-disk
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Rust Environment
Expand Down Expand Up @@ -227,7 +224,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,11 +313,8 @@ 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: Free Disk Space
uses: ./.github/actions/free-disk

- name: Checkout sources
uses: actions/checkout@v4
Expand Down Expand Up @@ -460,7 +454,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,11 +483,8 @@ 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: Free Disk Space
uses: ./.github/actions/free-disk

- name: Checkout sources
uses: actions/checkout@v4
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/pr-main_l2_prover.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ jobs:
matrix:
backend: ["sp1", "risc0"]
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/[email protected]
with:
tool-cache: false
large-packages: false
- name: Free Disk Space
uses: ./.github/actions/free-disk

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

- name: Checkout code
uses: actions/checkout@v4
Expand Down
Loading