## 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
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
name: Compile Release Candidate
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-release-candidate:
|
|
if: startsWith(github.ref_name, 'release/')
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
submodules: recursive
|
|
|
|
- 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: uv pip install --system -U https://github.com/pioarduino/platformio-core/archive/refs/tags/v6.1.19.zip
|
|
|
|
- name: Extract env
|
|
run: |
|
|
echo "SHORT_SHA=${GITHUB_SHA::7}" >> $GITHUB_ENV
|
|
echo "BRANCH_SUFFIX=${GITHUB_REF_NAME#release/}" >> $GITHUB_ENV
|
|
|
|
- name: Build CrossPoint Release Candidate
|
|
env:
|
|
CROSSPOINT_RC_HASH: ${{ env.SHORT_SHA }}
|
|
run: pio run -e gh_release_rc
|
|
|
|
- name: Upload Artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: CrossPoint-RC-${{ env.BRANCH_SUFFIX }}
|
|
path: |
|
|
.pio/build/gh_release_rc/bootloader.bin
|
|
.pio/build/gh_release_rc/firmware.bin
|
|
.pio/build/gh_release_rc/firmware.elf
|
|
.pio/build/gh_release_rc/firmware.map
|
|
.pio/build/gh_release_rc/partitions.bin
|