Skip to content

Commit

Permalink
Move cleanup to common setup
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig committed Aug 18, 2023
1 parent 588bcea commit 28c042f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ inputs:
runs:
using: composite
steps:
- name: Remove unnecessary software to free up disk space
run: |
# inspired by https://github.com/easimon/maximize-build-space/blob/master/action.yml
df -h
rm -rf /usr/share/dotnet /usr/local/lib/* /opt/*
df -h
- name: Install dependencies
run: cd ${{ inputs.kani_dir }} && ./scripts/setup/${{ inputs.os }}/install_deps.sh
shell: bash
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/kani.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,6 @@ jobs:
container:
image: ubuntu:18.04
steps:
- name: Remove unnecessary software to free up disk space
run: |
# inspired by https://github.com/easimon/maximize-build-space/blob/master/action.yml
df -h
rm -rf /usr/share/dotnet /usr/local/lib/* /opt/*
df -h
# This is required before checkout because the container does not
# have Git installed, so cannot run checkout action. The checkout
# action requires Git >=2.18, so use the Git maintainers' PPA.
Expand Down

0 comments on commit 28c042f

Please sign in to comment.