添加 action [Maximize build space]
感谢 kokeri 的建议 #125 以及项目作者 easimon/maximize-build-space
This commit is contained in:
parent
a71c8fbf39
commit
cb8dec2324
|
@ -50,13 +50,22 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
Compile:
|
Compile:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Maximize Build Space
|
||||||
|
uses: easimon/maximize-build-space@master
|
||||||
|
with:
|
||||||
|
root-reserve-mb: 5120
|
||||||
|
swap-size-mb: 512
|
||||||
|
remove-dotnet: 'true'
|
||||||
|
remove-android: 'true'
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
|
|
||||||
- name: Initialization Variables
|
- name: Initialization Variables
|
||||||
run: |
|
run: |
|
||||||
|
echo "Free space:"
|
||||||
|
df -h
|
||||||
if [ -n "${{ github.event.inputs.Tempoary_CONFIG }}" ]
|
if [ -n "${{ github.event.inputs.Tempoary_CONFIG }}" ]
|
||||||
then
|
then
|
||||||
if [ -f "$GITHUB_WORKSPACE/Configs/${{ github.event.inputs.Tempoary_CONFIG }}" ]
|
if [ -f "$GITHUB_WORKSPACE/Configs/${{ github.event.inputs.Tempoary_CONFIG }}" ]
|
||||||
|
|
|
@ -50,13 +50,22 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
Compile:
|
Compile:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Maximize Build Space
|
||||||
|
uses: easimon/maximize-build-space@master
|
||||||
|
with:
|
||||||
|
root-reserve-mb: 5120
|
||||||
|
swap-size-mb: 512
|
||||||
|
remove-dotnet: 'true'
|
||||||
|
remove-android: 'true'
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
|
|
||||||
- name: Initialization Variables
|
- name: Initialization Variables
|
||||||
run: |
|
run: |
|
||||||
|
echo "Free space:"
|
||||||
|
df -h
|
||||||
if [ -n "${{ github.event.inputs.Tempoary_CONFIG }}" ]
|
if [ -n "${{ github.event.inputs.Tempoary_CONFIG }}" ]
|
||||||
then
|
then
|
||||||
if [ -f "$GITHUB_WORKSPACE/Configs/${{ github.event.inputs.Tempoary_CONFIG }}" ]
|
if [ -f "$GITHUB_WORKSPACE/Configs/${{ github.event.inputs.Tempoary_CONFIG }}" ]
|
||||||
|
|
|
@ -50,13 +50,22 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
Compile:
|
Compile:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Maximize Build Space
|
||||||
|
uses: easimon/maximize-build-space@master
|
||||||
|
with:
|
||||||
|
root-reserve-mb: 5120
|
||||||
|
swap-size-mb: 512
|
||||||
|
remove-dotnet: 'true'
|
||||||
|
remove-android: 'true'
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
|
|
||||||
- name: Initialization Variables
|
- name: Initialization Variables
|
||||||
run: |
|
run: |
|
||||||
|
echo "Free space:"
|
||||||
|
df -h
|
||||||
if [ -n "${{ github.event.inputs.Tempoary_CONFIG }}" ]
|
if [ -n "${{ github.event.inputs.Tempoary_CONFIG }}" ]
|
||||||
then
|
then
|
||||||
if [ -f "$GITHUB_WORKSPACE/Configs/${{ github.event.inputs.Tempoary_CONFIG }}" ]
|
if [ -f "$GITHUB_WORKSPACE/Configs/${{ github.event.inputs.Tempoary_CONFIG }}" ]
|
||||||
|
|
|
@ -50,13 +50,22 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
Compile:
|
Compile:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Maximize Build Space
|
||||||
|
uses: easimon/maximize-build-space@master
|
||||||
|
with:
|
||||||
|
root-reserve-mb: 5120
|
||||||
|
swap-size-mb: 512
|
||||||
|
remove-dotnet: 'true'
|
||||||
|
remove-android: 'true'
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
|
|
||||||
- name: Initialization Variables
|
- name: Initialization Variables
|
||||||
run: |
|
run: |
|
||||||
|
echo "Free space:"
|
||||||
|
df -h
|
||||||
if [ -n "${{ github.event.inputs.Tempoary_CONFIG }}" ]
|
if [ -n "${{ github.event.inputs.Tempoary_CONFIG }}" ]
|
||||||
then
|
then
|
||||||
if [ -f "$GITHUB_WORKSPACE/Configs/${{ github.event.inputs.Tempoary_CONFIG }}" ]
|
if [ -f "$GITHUB_WORKSPACE/Configs/${{ github.event.inputs.Tempoary_CONFIG }}" ]
|
||||||
|
|
|
@ -50,13 +50,22 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
Compile:
|
Compile:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Maximize Build Space
|
||||||
|
uses: easimon/maximize-build-space@master
|
||||||
|
with:
|
||||||
|
root-reserve-mb: 5120
|
||||||
|
swap-size-mb: 512
|
||||||
|
remove-dotnet: 'true'
|
||||||
|
remove-android: 'true'
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
|
|
||||||
- name: Initialization Variables
|
- name: Initialization Variables
|
||||||
run: |
|
run: |
|
||||||
|
echo "Free space:"
|
||||||
|
df -h
|
||||||
if [ -n "${{ github.event.inputs.Tempoary_CONFIG }}" ]
|
if [ -n "${{ github.event.inputs.Tempoary_CONFIG }}" ]
|
||||||
then
|
then
|
||||||
if [ -f "$GITHUB_WORKSPACE/Configs/${{ github.event.inputs.Tempoary_CONFIG }}" ]
|
if [ -f "$GITHUB_WORKSPACE/Configs/${{ github.event.inputs.Tempoary_CONFIG }}" ]
|
||||||
|
|
|
@ -50,13 +50,22 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
Compile:
|
Compile:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Maximize Build Space
|
||||||
|
uses: easimon/maximize-build-space@master
|
||||||
|
with:
|
||||||
|
root-reserve-mb: 5120
|
||||||
|
swap-size-mb: 512
|
||||||
|
remove-dotnet: 'true'
|
||||||
|
remove-android: 'true'
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
|
|
||||||
- name: Initialization Variables
|
- name: Initialization Variables
|
||||||
run: |
|
run: |
|
||||||
|
echo "Free space:"
|
||||||
|
df -h
|
||||||
if [ -n "${{ github.event.inputs.Tempoary_CONFIG }}" ]
|
if [ -n "${{ github.event.inputs.Tempoary_CONFIG }}" ]
|
||||||
then
|
then
|
||||||
if [ -f "$GITHUB_WORKSPACE/Configs/${{ github.event.inputs.Tempoary_CONFIG }}" ]
|
if [ -f "$GITHUB_WORKSPACE/Configs/${{ github.event.inputs.Tempoary_CONFIG }}" ]
|
||||||
|
|
Loading…
Reference in New Issue