39d29a1d2e
* build: handle out of disk space on source cache Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * build: add cron job to free up source cache disk space Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
21 lines
588 B
YAML
21 lines
588 B
YAML
name: Clean Source Cache
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 0 * * SUN" # Run at midnight every Sunday
|
|
|
|
jobs:
|
|
clean-src-cache:
|
|
runs-on: electron-arc-linux-amd64-32core
|
|
container:
|
|
image: ghcr.io/electron/build:bc2f48b2415a670de18d13605b1cf0eb5fdbaae1
|
|
options: --user root
|
|
volumes:
|
|
- /mnt/cross-instance-cache:/mnt/cross-instance-cache
|
|
steps:
|
|
- name: Cleanup Source Cache
|
|
shell: bash
|
|
run: |
|
|
df -h /mnt/cross-instance-cache
|
|
find /mnt/cross-instance-cache -type f -mtime +30 -delete
|
|
df -h /mnt/cross-instance-cache
|