From 13592db50f41dfdff1b5af1838c43bec1733a3ad Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Mon, 23 Feb 2026 21:25:53 +0100 Subject: [PATCH] perf: Update github actions for optimal performance with pioarduino (#1080) ## Summary * **What is the goal of this PR?** speed increase gh workflows, optimized for pioarduino Platform * **What changes are included?** remove pip and pip cache install and use `uv` use pioarduino core instead of Platformio core for optimal performance with pioarduino Platform ## Additional Context - signed off by the maintainer of pioarduino --- ### AI Usage While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it helps set the right context for reviewers. Did you use AI tools to help write this code? _**< YES | PARTIALLY | NO >**_NO --- .github/workflows/ci.yml | 16 ++++++++++++++-- .github/workflows/release.yml | 15 +++++++-------- .github/workflows/release_candidate.yml | 15 +++++++-------- 3 files changed, 28 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e65fa549..f933013c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,8 +44,14 @@ jobs: with: python-version: '3.14' + - name: Install uv + uses: astral-sh/setup-uv@v7 + with: + version: "latest" + enable-cache: false + - name: Install PlatformIO Core - run: pip install --upgrade platformio + run: uv pip install --system -U https://github.com/pioarduino/platformio-core/archive/refs/tags/v6.1.19.zip - name: Run cppcheck run: pio check --fail-on-defect low --fail-on-defect medium --fail-on-defect high @@ -61,8 +67,14 @@ jobs: with: python-version: '3.14' + - name: Install uv + uses: astral-sh/setup-uv@v7 + with: + version: "latest" + enable-cache: false + - name: Install PlatformIO Core - run: pip install --upgrade platformio + run: uv pip install --system -U https://github.com/pioarduino/platformio-core/archive/refs/tags/v6.1.19.zip - name: Build CrossPoint run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index df8d6679..aae332c1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,19 +12,18 @@ jobs: with: submodules: recursive - - uses: actions/cache@v5 - with: - path: | - ~/.cache/pip - ~/.platformio/.cache - key: ${{ runner.os }}-pio - - uses: actions/setup-python@v6 with: python-version: '3.14' + - name: Install uv + uses: astral-sh/setup-uv@v7 + with: + version: "latest" + enable-cache: false + - name: Install PlatformIO Core - run: pip install --upgrade platformio + run: uv pip install --system -U https://github.com/pioarduino/platformio-core/archive/refs/tags/v6.1.19.zip - name: Build CrossPoint run: pio run -e gh_release diff --git a/.github/workflows/release_candidate.yml b/.github/workflows/release_candidate.yml index d247fa78..ea3f10b2 100644 --- a/.github/workflows/release_candidate.yml +++ b/.github/workflows/release_candidate.yml @@ -12,19 +12,18 @@ jobs: with: submodules: recursive - - uses: actions/cache@v5 - with: - path: | - ~/.cache/pip - ~/.platformio/.cache - key: ${{ runner.os }}-pio - - uses: actions/setup-python@v6 with: python-version: '3.14' + - name: Install uv + uses: astral-sh/setup-uv@v7 + with: + version: "latest" + enable-cache: false + - name: Install PlatformIO Core - run: pip install --upgrade platformio + run: uv pip install --system -U https://github.com/pioarduino/platformio-core/archive/refs/tags/v6.1.19.zip - name: Extract env run: |