A fork of https://github.com/crosspoint-reader/crosspoint-reader
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Jason2866 and committed by
GitHub
13592db5 f8a9f1f0

+28 -18
+14 -2
.github/workflows/ci.yml
··· 44 44 with: 45 45 python-version: '3.14' 46 46 47 + - name: Install uv 48 + uses: astral-sh/setup-uv@v7 49 + with: 50 + version: "latest" 51 + enable-cache: false 52 + 47 53 - name: Install PlatformIO Core 48 - run: pip install --upgrade platformio 54 + run: uv pip install --system -U https://github.com/pioarduino/platformio-core/archive/refs/tags/v6.1.19.zip 49 55 50 56 - name: Run cppcheck 51 57 run: pio check --fail-on-defect low --fail-on-defect medium --fail-on-defect high ··· 61 67 with: 62 68 python-version: '3.14' 63 69 70 + - name: Install uv 71 + uses: astral-sh/setup-uv@v7 72 + with: 73 + version: "latest" 74 + enable-cache: false 75 + 64 76 - name: Install PlatformIO Core 65 - run: pip install --upgrade platformio 77 + run: uv pip install --system -U https://github.com/pioarduino/platformio-core/archive/refs/tags/v6.1.19.zip 66 78 67 79 - name: Build CrossPoint 68 80 run: |
+7 -8
.github/workflows/release.yml
··· 12 12 with: 13 13 submodules: recursive 14 14 15 - - uses: actions/cache@v5 15 + - uses: actions/setup-python@v6 16 16 with: 17 - path: | 18 - ~/.cache/pip 19 - ~/.platformio/.cache 20 - key: ${{ runner.os }}-pio 17 + python-version: '3.14' 21 18 22 - - uses: actions/setup-python@v6 19 + - name: Install uv 20 + uses: astral-sh/setup-uv@v7 23 21 with: 24 - python-version: '3.14' 22 + version: "latest" 23 + enable-cache: false 25 24 26 25 - name: Install PlatformIO Core 27 - run: pip install --upgrade platformio 26 + run: uv pip install --system -U https://github.com/pioarduino/platformio-core/archive/refs/tags/v6.1.19.zip 28 27 29 28 - name: Build CrossPoint 30 29 run: pio run -e gh_release
+7 -8
.github/workflows/release_candidate.yml
··· 12 12 with: 13 13 submodules: recursive 14 14 15 - - uses: actions/cache@v5 15 + - uses: actions/setup-python@v6 16 16 with: 17 - path: | 18 - ~/.cache/pip 19 - ~/.platformio/.cache 20 - key: ${{ runner.os }}-pio 17 + python-version: '3.14' 21 18 22 - - uses: actions/setup-python@v6 19 + - name: Install uv 20 + uses: astral-sh/setup-uv@v7 23 21 with: 24 - python-version: '3.14' 22 + version: "latest" 23 + enable-cache: false 25 24 26 25 - name: Install PlatformIO Core 27 - run: pip install --upgrade platformio 26 + run: uv pip install --system -U https://github.com/pioarduino/platformio-core/archive/refs/tags/v6.1.19.zip 28 27 29 28 - name: Extract env 30 29 run: |