Skip to content

Commit 384d456

Browse files
committed
f. -test
1 parent b0b71ae commit 384d456

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: "Clean up android sdk/ndk"
2+
description: "Removes Android SDK/NDK to free up disk space on the runner."
3+
4+
runs:
5+
using: "composite"
6+
steps:
7+
- name: Remove android toolchain
8+
shell: bash
9+
run: |
10+
echo "Removing android toolchain to free up disk space..."
11+
sudo rm -rf /usr/local/lib/android
12+
df -h

.github/actions/cleanup-space/action.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ runs:
1313
1414
# Remove dotnet to save disk space.
1515
sudo rm -rf /usr/share/dotnet
16-
# Remove android to save disk space.
17-
sudo rm -rf /usr/local/lib/android
1816
# Remove ghc to save disk space.
1917
sudo rm -rf /opt/ghc
2018
# Remove large packages.

.github/workflows/main.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ jobs:
6363
- name: wasm compile
6464
run: make wasm
6565

66+
- name: Clean up runner space (android)
67+
uses: ./.github/actions/cleanup-android
68+
6669
########################
6770
# lint code
6871
########################
@@ -78,6 +81,9 @@ jobs:
7881
- name: Clean up runner space
7982
uses: ./.github/actions/cleanup-space
8083

84+
- name: Clean up runner space (android)
85+
uses: ./.github/actions/cleanup-android
86+
8187
- name: go cache
8288
uses: actions/cache@v3
8389
with:
@@ -117,6 +123,9 @@ jobs:
117123
- name: Clean up runner space
118124
uses: ./.github/actions/cleanup-space
119125

126+
- name: Clean up runner space (android)
127+
uses: ./.github/actions/cleanup-android
128+
120129
- name: go cache
121130
uses: actions/cache@v3
122131
with:
@@ -149,6 +158,9 @@ jobs:
149158
- name: Clean up runner space
150159
uses: ./.github/actions/cleanup-space
151160

161+
- name: Clean up runner space (android)
162+
uses: ./.github/actions/cleanup-android
163+
152164
- name: go cache
153165
uses: actions/cache@v3
154166
with:

0 commit comments

Comments
 (0)