Skip to content

Commit

Permalink
use rm
Browse files Browse the repository at this point in the history
  • Loading branch information
mpromonet committed Dec 19, 2024
1 parent e1beffb commit 1b53bbb
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 33 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/anchore-syft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ jobs:
contents: write # required to upload to the Dependency submission API
runs-on: ubuntu-latest
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
remove-dotnet: 'true'
remove-android: 'true'
- name: Remove unnecessary directories to free up space
run: |
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo rm -rf /usr/local/lib/android/sdk/ndk
sudo rm -rf /usr/share/dotnet
- name: Checkout the code
uses: actions/checkout@v4

- name: Build the Docker image
run: docker build . --file Dockerfile --tag localbuild/testimage:latest

- name: Scan the image and upload dependency results
uses: anchore/sbom-action@v0
with:
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/cpp-cross-linux-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
remove-dotnet: 'true'
remove-android: 'true'
- name: Remove unnecessary directories to free up space
run: |
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo rm -rf /usr/local/lib/android/sdk/ndk
sudo rm -rf /usr/share/dotnet
- uses: actions/checkout@v4
- run: git fetch --prune --unshallow --tags
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/cpp-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
remove-dotnet: 'true'
remove-android: 'true'
- name: Remove unnecessary directories to free up space
run: |
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo rm -rf /usr/local/lib/android/sdk/ndk
sudo rm -rf /usr/share/dotnet
- uses: actions/checkout@v4
- run: git fetch --prune --unshallow --tags
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/cpp-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
remove-dotnet: 'true'
remove-android: 'true'
- name: Remove unnecessary directories to free up space
run: |
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo rm -rf /usr/local/lib/android/sdk/ndk
sudo rm -rf /usr/share/dotnet
- uses: actions/checkout@v4
- run: git fetch --prune --unshallow --tags
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/deploy-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
remove-dotnet: 'true'
remove-android: 'true'
- name: Remove unnecessary directories to free up space
run: |
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo rm -rf /usr/local/lib/android/sdk/ndk
sudo rm -rf /usr/share/dotnet
- uses: actions/checkout@v4
- run: git fetch --prune --unshallow --tags

Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
remove-dotnet: 'true'
remove-android: 'true'

- name: Remove unnecessary directories to free up space
run: |
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo rm -rf /usr/local/lib/android/sdk/ndk
sudo rm -rf /usr/share/dotnet

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

Expand Down

0 comments on commit 1b53bbb

Please sign in to comment.