tools: optimize docker image and fix launchpad builds

- Earlier fixes removed .git which potentially failed building the
  examples as esp-idf does git describe during builds. Added them back
  anad build works now.
- Removed the dormant bits from the docker-image
- Added ninja-jobs option for better resource utilization during host
  tool builds
- Added back the linux installation as we do need ability to run
  chip-tool from the container.
This commit is contained in:
Shubham Patil
2025-12-30 18:00:33 +05:30
parent a13535b57a
commit 27dd31913a
3 changed files with 35 additions and 22 deletions
+7 -5
View File
@@ -34,15 +34,17 @@ jobs:
# Disable the job in forks
if: ${{ github.repository_owner == 'espressif' }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
# Platforms to build the image for
# Using a separate runner for each image to work around space issues on a single runner
platform:
- linux/amd64
- linux/arm64
# Using native runners for each architecture to avoid slow QEMU emulation
include:
- platform: linux/amd64
runner: ubuntu-24.04
- platform: linux/arm64
runner: ubuntu-24.04-arm
runs-on: ${{ matrix.runner }}
steps:
# Workaround for disk space issues on the GitHub runner