Skip to content

Commit

Permalink
Free disk space (#3432)
Browse files Browse the repository at this point in the history
* added free disk space to build-feature.yml and deleted build-feature.yml

* fixed du

* added free disk space to release-to-maven-central.yml

* deleted echo
  • Loading branch information
andreasfritz authored Jun 7, 2024
1 parent 00ee3be commit 9b6c45c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 43 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/build-feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,26 @@ on:
- master
- 1.*
- 2.*
pull_request:

jobs:
build:

strategy:
matrix:
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}
steps:

- name: free disk space
run: |
df -h
sudo swapoff -a
sudo rm -f /swapfile
sudo apt clean
docker rmi $(docker image ls -aq)
df -h
- uses: actions/checkout@v4

- name: Set up JDK 17
Expand Down
42 changes: 0 additions & 42 deletions .github/workflows/build-pullrequest.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/release-to-maven-central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ jobs:
steps:
- run: echo "Will start a Maven Central upload with version ${{ github.event.inputs.releaseversion }}"

- name: free disk space
run: |
df -h
sudo swapoff -a
sudo rm -f /swapfile
sudo apt clean
docker rmi $(docker image ls -aq)
df -h
- uses: actions/checkout@v4

- name: Set up settings.xml for Maven Central Repository
Expand Down Expand Up @@ -80,6 +89,15 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: free disk space
run: |
df -h
sudo swapoff -a
sudo rm -f /swapfile
sudo apt clean
docker rmi $(docker image ls -aq)
df -h
- name: Generate changelog
id: changelog
uses: metcalfc/[email protected]
Expand Down

0 comments on commit 9b6c45c

Please sign in to comment.