test disk space monitor.
This commit is contained in:
parent
5e89314c31
commit
2cbb5e3908
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -1,16 +1,16 @@
|
|||||||
name: Build deb packages
|
name: Build kernel deb packages
|
||||||
on: push
|
on: push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build my artifact
|
name: Build kernel
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Maximize build space
|
- name: Maximize build space
|
||||||
uses: easimon/maximize-build-space@master
|
uses: easimon/maximize-build-space@master
|
||||||
with:
|
with:
|
||||||
root-reserve-mb: 1024
|
root-reserve-mb: 1024
|
||||||
swap-size-mb: 1024
|
swap-size-mb: 512
|
||||||
remove-dotnet: 'true'
|
remove-dotnet: 'true'
|
||||||
remove-android: 'true'
|
remove-android: 'true'
|
||||||
remove-haskell: 'true'
|
remove-haskell: 'true'
|
||||||
@ -19,7 +19,7 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: sudo bash build_action.sh
|
run: bash monitor.sh & sudo bash build_action.sh && rm monitor.sh
|
||||||
|
|
||||||
- name: Artifact
|
- name: Artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
8
monitor.sh
Normal file
8
monitor.sh
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
while [ -f monitor.sh ]; do
|
||||||
|
echo ================================================
|
||||||
|
df -h
|
||||||
|
echo ================================================
|
||||||
|
sleep 5
|
||||||
|
done
|
Loading…
x
Reference in New Issue
Block a user