[gcc(refs/vendors/microsoft/heads/main)] Free disk space in update-main too
Eugene Rozenfeld
erozen@gcc.gnu.org
Sat Oct 7 02:09:28 GMT 2023
https://gcc.gnu.org/g:f32424218d3f907386492e25e816a49623d0686f
commit f32424218d3f907386492e25e816a49623d0686f
Author: Eugene Rozenfeld <erozen@microsoft.com>
Date: Fri Oct 6 19:00:22 2023 -0700
Free disk space in update-main too
Diff:
---
.github/scripts/free-disk-space.sh | 30 ++++++++++++++++++++++++++++++
.github/workflows/build.yaml | 14 +++++---------
.github/workflows/test-gcc.yaml | 14 +++++---------
.github/workflows/update-main.yaml | 9 +++++++++
4 files changed, 49 insertions(+), 18 deletions(-)
diff --git a/.github/scripts/free-disk-space.sh b/.github/scripts/free-disk-space.sh
new file mode 100644
index 00000000000..8325b954590
--- /dev/null
+++ b/.github/scripts/free-disk-space.sh
@@ -0,0 +1,30 @@
+# Copyright (c) Microsoft Corporation.
+
+# MIT License
+
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+
+# The above copyright notice and this permission notice shall be included in all
+# copies or substantial portions of the Software.
+
+# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+# SOFTWARE.
+
+echo "Free space before:"
+df -h
+sudo rm -rf /usr/share/dotnet
+sudo rm -rf /opt/ghc
+sudo rm -rf /usr/local/share/boost
+sudo rm -rf "$AGENT_TOOLSDIRECTORY"
+echo "Free space after:"
+df -h
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index eb68916cda9..a217223ffa0 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -41,15 +41,11 @@ jobs:
build:
runs-on: ubuntu-22.04
steps:
- - run: |
- echo "Free space before:"
- df -h
- sudo rm -rf /usr/share/dotnet
- sudo rm -rf /opt/ghc
- sudo rm -rf /usr/local/share/boost
- sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- echo "Free space after:"
- df -h
+ - name: Increase available disk space
+ run: |
+ chmod +x .github/scripts/free-disk-space.sh
+ .github/scripts/free-disk-space.sh
+
- name: checkout
uses: actions/checkout@v3
with:
diff --git a/.github/workflows/test-gcc.yaml b/.github/workflows/test-gcc.yaml
index 1f1b83f711c..517aac93301 100644
--- a/.github/workflows/test-gcc.yaml
+++ b/.github/workflows/test-gcc.yaml
@@ -105,15 +105,11 @@ jobs:
fail-fast: false
runs-on: ubuntu-22.04
steps:
- - run: |
- echo "Free space before:"
- df -h
- sudo rm -rf /usr/share/dotnet
- sudo rm -rf /opt/ghc
- sudo rm -rf /usr/local/share/boost
- sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- echo "Free space after:"
- df -h
+ - name: Increase available disk space
+ run: |
+ chmod +x .github/scripts/free-disk-space.sh
+ .github/scripts/free-disk-space.sh
+
- run: echo ${{needs.init.outputs.output1}} ${{needs.init.outputs.output2}}
- run: echo $GITHUB_CONTEXT
env:
diff --git a/.github/workflows/update-main.yaml b/.github/workflows/update-main.yaml
index c1e792e299c..944709d251d 100644
--- a/.github/workflows/update-main.yaml
+++ b/.github/workflows/update-main.yaml
@@ -46,6 +46,10 @@ jobs:
masterSHA: ${{ steps.printCurrentSHA.outputs.currentSHA }}
matrixTestSet: ${{ steps.printGCCTestSet.outputs.testSet }}
steps:
+ - name: Increase available disk space
+ run: |
+ chmod +x .github/scripts/free-disk-space.sh
+ .github/scripts/free-disk-space.sh
- name: Checkout
uses: actions/checkout@v3
with:
@@ -133,6 +137,11 @@ jobs:
runs-on: ubuntu-22.04
steps:
+ - name: Increase available disk space
+ run: |
+ chmod +x .github/scripts/free-disk-space.sh
+ .github/scripts/free-disk-space.sh
+
- name: Checkout
uses: actions/checkout@v3
with:
More information about the Gcc-cvs
mailing list