Skip to content

Commit

Permalink
Free up disk space
Browse files Browse the repository at this point in the history
  • Loading branch information
anhappdev committed Aug 17, 2023
1 parent 6355690 commit 41a2b30
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/app-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
build-android-image:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
Expand Down Expand Up @@ -42,12 +42,21 @@ jobs:

build-android-apk:
needs: build-android-image
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
container:
image: ghcr.io/mlcommons/mobile_app_open-android:${{ github.run_number }}
timeout-minutes: 120
steps:
- uses: actions/checkout@v3
# Preinstalled tools from host at `/opt/hostedtoolcache` is not needed since we run commands inside our own Docker container.
# `/opt/hostedtoolcache` is mounted to `/__t`. We delete it to free up disk space.
- name: Free up disk space
run: |
echo BEFORE:
df -h
rm -rf /__t/*
echo AFTER:
df -h
- name: Configure Git
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Install AWS CLI
Expand Down

0 comments on commit 41a2b30

Please sign in to comment.