最近在一个项目中,我开始遇到我的 github 操作运行程序空间不足的情况。 这是执行期间的情况(我有一个构建步骤,然后是一个运行步骤,中间有 apk 的工件)。
觉得这很奇怪,但我使用
uses: jlumbroso/free-disk-space@main
来帮助释放自由跑步者拥有的许多默认内容,并且它似乎解决了问题。
最近应用程序的构建步骤也开始出现空间不足的情况。 我在
ubuntu-latest
上运行它,根据 文档 应该给我 14Gb 的存储空间。
但是,不知何故,构建一个单一的反应式移动应用程序导致我空间不足?:
stderr: org.gradle.api.UncheckedIOException: Could not add entry ':app:fullstoryDevelopmentRelease' to cache executionHistory.bin (/home/runner/work/mobile-app/mobile-app/android/.gradle/8.0.1/executionHistory/executionHistory.bin).
at org.gradle.cache.internal.btree.BTreePersistentIndexedCache.put(BTreePersistentIndexedCache.java:162)
at org.gradle.cache.internal.DefaultMultiProcessSafePersistentIndexedCache.lambda$put$1(DefaultMultiProcessSafePersistentIndexedCache.java:67)
at org.gradle.cache.internal.DefaultFileLockManager$DefaultFileLock.doWriteAction(DefaultFileLockManager.java:216)
at org.gradle.cache.internal.DefaultFileLockManager$DefaultFileLock.writeFile(DefaultFileLockManager.java:206)
at org.gradle.cache.internal.DefaultCacheAccess$UnitOfWorkFileAccess.writeFile(DefaultCacheAccess.java:471)
at org.gradle.cache.internal.DefaultMultiProcessSafePersistentIndexedCache.put(DefaultMultiProcessSafePersistentIndexedCache.java:67)
at org.gradle.cache.internal.AsyncCacheAccessDecoratedCache.lambda$putLater$1(AsyncCacheAccessDecoratedCache.java:56)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.cache.internal.CacheAccessWorker$2.run(CacheAccessWorker.java:185)
at org.gradle.internal.Factories$1.create(Factories.java:31)
at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:247)
at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:228)
at org.gradle.cache.internal.CacheAccessWorker.flushOperations(CacheAccessWorker.java:175)
at org.gradle.cache.internal.CacheAccessWorker.run(CacheAccessWorker.java:145)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:49)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: org.gradle.api.UncheckedIOException: java.io.IOException: No space left on device
at org.gradle.cache.internal.btree.FileBackedBlockStore.write(FileBackedBlockStore.java:140)
at org.gradle.cache.internal.btree.CachingBlockStore.flush(CachingBlockStore.java:64)
at org.gradle.cache.internal.btree.FreeListBlockStore.flush(FreeListBlockStore.java:103)
at org.gradle.cache.internal.btree.StateCheckBlockStore.flush(StateCheckBlockStore.java:85)
stdout:
at org.gradle.cache.internal.btree.BTreePersistentIndexedCache.put(BTreePersistentIndexedCache.java:160)
... 18 more
Caused by: java.io.IOException: No space left on device
at java.base/java.io.RandomAccessFile.writeBytes(Native Method)
at java.base/java.io.RandomAccessFile.write(RandomAccessFile.java:558)
at org.gradle.internal.io.RandomAccessFileOutputStream.write(RandomAccessFileOutputStream.java:46)
at java.base/java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:81)
at java.base/java.io.BufferedOutputStream.flush(BufferedOutputStream.java:142)
at java.base/java.io.FilterOutputStream.flush(FilterOutputStream.java:153)
at org.gradle.cache.internal.btree.ByteOutput.done(ByteOutput.java:62)
at org.gradle.cache.internal.btree.FileBackedBlockStore$BlockImpl.write(FileBackedBlockStore.java:223)
at org.gradle.cache.internal.btree.FileBackedBlockStore.write(FileBackedBlockStore.java:136)
... 22 more
FAILURE: Build completed with 3 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':react-native-safe-area-context:prepareLintJarForPublish'.
> Failed to create parent directory '/home/runner/work/mobile-app/mobile-app/node_modules/react-native-safe-area-context/android/build/intermediates/lint_publish_jar' when creating directory '/home/runner/work/mobile-app/mobile-app/node_modules/react-native-safe-area-context/android/build/intermediates/lint_publish_jar/global'
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:packageDevelopmentRelease'.
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
> java.io.IOException: No space left on device
你的 github actions 文件中的 clean 标志是否设置为 true??