Skip to content

Commit

Permalink
Run action that frees up diskspace during workflows (java-native-acce…
Browse files Browse the repository at this point in the history
…ss#573)

Motivation:

We need quite some diskspace due our ue of docker, let's ensure we have
enough by free up what we dont need on the runner.

Modifications:

Use action that frees up diskspace

Result:

More stable build
  • Loading branch information
normanmaurer authored Aug 30, 2023
1 parent aab4d8f commit 776c601
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ jobs:
runs-on: ubuntu-latest
name: linux-x86_64
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false

- uses: actions/checkout@v3

# Caching of maven dependencies
Expand Down Expand Up @@ -73,6 +80,13 @@ jobs:
runs-on: ubuntu-latest
name: linux-aarch64
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false

- uses: actions/checkout@v3

# Caching of maven dependencies
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/ci-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ jobs:

name: stage-snapshot-${{ matrix.setup }}
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false

- uses: actions/checkout@v3

# Caching of maven dependencies
Expand Down Expand Up @@ -159,6 +166,13 @@ jobs:
# Wait until we have staged everything
needs: [stage-snapshot-linux, stage-snapshot-windows-x86_64]
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false

- uses: actions/checkout@v3

- name: Set up JDK 8
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ jobs:
runs-on: ubuntu-latest
name: ${{ matrix.setup }} build
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false

- uses: actions/checkout@v3

# Cache .m2/repository
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ jobs:
prepare-release:
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false

- uses: actions/checkout@v3
with:
ref: main
Expand Down Expand Up @@ -86,6 +93,13 @@ jobs:
name: stage-release-${{ matrix.setup }}

steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false

- name: Download release-workspace
uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -270,6 +284,13 @@ jobs:
# Wait until we have staged everything
needs: [stage-release-linux, stage-release-windows-x86_64]
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false

- name: Download release-workspace
uses: actions/download-artifact@v3
with:
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/ci-verify-load.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ jobs:
install-jars-linux-aarch64:
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false

- uses: actions/checkout@v3

# Caching of maven dependencies
Expand Down Expand Up @@ -70,6 +77,13 @@ jobs:
runs-on: ubuntu-latest
needs: [ install-jars-linux-aarch64 ]
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false

- uses: actions/checkout@v3

- name: Download the maven repository
Expand Down

0 comments on commit 776c601

Please sign in to comment.