From 597a88337600ce34b9108a5ce5c2bc988e256a04 Mon Sep 17 00:00:00 2001 From: Dominic Date: Sun, 1 Nov 2026 11:29:01 +0100 Subject: [PATCH] Use Node image with isolated PlatformIO environment --- .gitea/workflows/firmware-builds.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/firmware-builds.yaml b/.gitea/workflows/firmware-builds.yaml index dde9502..22e1266 100644 --- a/.gitea/workflows/firmware-builds.yaml +++ b/.gitea/workflows/firmware-builds.yaml @@ -11,10 +11,10 @@ jobs: firmware-builds: runs-on: ubuntu-24.04 container: - image: python:3.12-bookworm + image: node:20-bookworm-slim steps: - - name: Install Git - run: apt-get update && apt-get install -y --no-install-recommends git ca-certificates && rm -rf /var/lib/apt/lists/* + - name: Install Git and Python + run: apt-get update && apt-get install -y --no-install-recommends git python3 python3-pip python3-venv ca-certificates && rm -rf /var/lib/apt/lists/* shell: bash - name: Check out repository uses: actions/checkout@v4 @@ -22,16 +22,16 @@ jobs: run: cp include/config.example.h include/config.h shell: bash - name: Install PlatformIO - run: python -m pip install --no-cache-dir platformio + run: python3 -m venv .venv && .venv/bin/pip install --no-cache-dir platformio shell: bash - name: Build SD-card firmware - run: pio run -e sd_variant + run: .venv/bin/pio run -e sd_variant shell: bash - name: Build flash firmware - run: pio run -e flash_variant + run: .venv/bin/pio run -e flash_variant shell: bash - name: Build USB-MSC diagnostic firmware - run: pio run -e usb_msc_test + run: .venv/bin/pio run -e usb_msc_test shell: bash - name: Upload SD-card firmware artifact uses: christopherhx/gitea-upload-artifact@v4