Use Node image with isolated PlatformIO environment
ESP32 Firmware Builds / firmware-builds (push) Successful in 10m25s
ESP32 Firmware Builds / firmware-builds (push) Successful in 10m25s
This commit is contained in:
1 parent
af7c55b223
commit
597a883376
1 file changed
+7
-7
@@ -11,10 +11,10 @@ jobs:
|
|||||||
firmware-builds:
|
firmware-builds:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
container:
|
container:
|
||||||
image: python:3.12-bookworm
|
image: node:20-bookworm-slim
|
||||||
steps:
|
steps:
|
||||||
- name: Install Git
|
- name: Install Git and Python
|
||||||
run: apt-get update && apt-get install -y --no-install-recommends git ca-certificates && rm -rf /var/lib/apt/lists/*
|
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
|
shell: bash
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -22,16 +22,16 @@ jobs:
|
|||||||
run: cp include/config.example.h include/config.h
|
run: cp include/config.example.h include/config.h
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Install PlatformIO
|
- 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
|
shell: bash
|
||||||
- name: Build SD-card firmware
|
- name: Build SD-card firmware
|
||||||
run: pio run -e sd_variant
|
run: .venv/bin/pio run -e sd_variant
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Build flash firmware
|
- name: Build flash firmware
|
||||||
run: pio run -e flash_variant
|
run: .venv/bin/pio run -e flash_variant
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Build USB-MSC diagnostic firmware
|
- name: Build USB-MSC diagnostic firmware
|
||||||
run: pio run -e usb_msc_test
|
run: .venv/bin/pio run -e usb_msc_test
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Upload SD-card firmware artifact
|
- name: Upload SD-card firmware artifact
|
||||||
uses: christopherhx/gitea-upload-artifact@v4
|
uses: christopherhx/gitea-upload-artifact@v4
|
||||||
|
|||||||
Reference in new issue
Block a user