Skip to content

Commit e772d93

Browse files
committed
Try out-of-disk-space workaround
Free up more space on GHA runner.
1 parent e9dd18c commit e772d93

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/container-build-check.yml

+14
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ jobs:
7070
- name: "Test building container esp32s2zephyr"
7171
run: |
7272
set -euxo pipefail
73+
74+
# "Out of disk space" workaround
75+
sudo rm -rf /usr/share/dotnet
76+
sudo rm -rf /opt/ghc
77+
sudo rm -rf "/usr/local/share/boost"
78+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
79+
7380
cd ${{ github.workspace }}/esp32s2
7481
docker build -f Dockerfile.esp32s2_mcuboot_zephyr \
7582
--build-arg SBV2_PRIVATE_KEY="sbv2_private_dev.pem" \
@@ -110,6 +117,13 @@ jobs:
110117
- name: "Test building container esp32zephyr"
111118
run: |
112119
set -euxo pipefail
120+
121+
# "Out of disk space" workaround
122+
sudo rm -rf /usr/share/dotnet
123+
sudo rm -rf /opt/ghc
124+
sudo rm -rf "/usr/local/share/boost"
125+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
126+
113127
cd ${{ github.workspace }}/esp32
114128
docker build -f Dockerfile.esp32_mcuboot_zephyr \
115129
--build-arg SBV2_PRIVATE_KEY="sbv2_private_dev.pem" \

.github/workflows/pub-ghcr.yml

+9
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ jobs:
2020
steps:
2121
- name: "Checkout repository"
2222
uses: actions/checkout@v4.1.1
23+
- name: "Out-of-disk-space workaround"
24+
run: |
25+
set -euxo pipefail
26+
# "Out of disk space" workaround
27+
sudo rm -rf /usr/share/dotnet
28+
sudo rm -rf /opt/ghc
29+
sudo rm -rf "/usr/local/share/boost"
30+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
31+
2332
- name: "Build container"
2433
run: |
2534
set -euxo pipefail

0 commit comments

Comments
 (0)