Skip to content

Commit

Permalink
Fixing disk size limitation when building large dev containers (#2913)
Browse files Browse the repository at this point in the history
***NO_CI***
  • Loading branch information
Ellerbach authored Apr 18, 2024
1 parent 85f6444 commit 4c3d1d1
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/devcontainer-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ jobs:

- name: Checkout Repository
uses: actions/checkout@v4

- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# when set to "true" but frees about 6 GB
tool-cache: true

- name: Get container version
run: |
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/devcontainer-azurertos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,17 @@ jobs:
if: ${{ vars.PUBLISH_DOCKER_IMAGE == 'true' }}
runs-on: ubuntu-latest
steps:

- name: Checkout Repository
uses: actions/checkout@v4

- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# when set to "true" but frees about 6 GB
tool-cache: true

- name: Get container version
run: |
$dockerfileContent = Get-Content(".devcontainer/AzureRTOS/Dockerfile.AzureRTOS")
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/devcontainer-chibios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# when set to "true" but frees about 6 GB
tool-cache: true

- name: Get container version
run: |
$dockerfileContent = Get-Content(".devcontainer/ChibiOS/Dockerfile.ChibiOS")
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/devcontainer-esp32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# when set to "true" but frees about 6 GB
tool-cache: true

- name: Get container version
run: |
$dockerfileContent = Get-Content(".devcontainer/ESP32/Dockerfile.ESP32")
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/devcontainer-freertos-nxp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,16 @@ jobs:
packages: write

steps:

- name: Checkout Repository
uses: actions/checkout@v4

- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# when set to "true" but frees about 6 GB
tool-cache: true

- name: Get container version
shell: pwsh
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/devcontainer-smoketest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ jobs:
with:
submodules: true

- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# when set to "true" but frees about 6 GB
tool-cache: true

- name: Update repo submodules
run: |
git submodule update --init
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/devcontainer-ti.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# when set to "true" but frees about 6 GB
tool-cache: true

- name: Get container version
run: |
$dockerfileContent = Get-Content(".devcontainer/TI/Dockerfile.TI")
Expand Down

0 comments on commit 4c3d1d1

Please sign in to comment.