Skip to content

Bump version to include new SDK use #131

Bump version to include new SDK use

Bump version to include new SDK use #131

Workflow file for this run

name: PlatformIO CI
on: [pull_request, push]
defaults:
run:
working-directory: ./
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set FIRMWARE_VERSION variable
run: |
FIRMWARE_VER=$(cat VERSION)
echo "FIRMWARE_VERSION=$FIRMWARE_VER" >> $GITHUB_ENV
- name: Set FIRMWARE_COMMIT_HASH variable
run: echo "FIRMWARE_COMMIT_SHA=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install platformio
- name: Build
run: pio run
- name: Rename firmware
run: mv .pio/build/rpipicow/firmware.uf2 .pio/build/rpipicow/xrp-wpilib-firmware-${{ env.FIRMWARE_VERSION }}-${{ env.FIRMWARE_COMMIT_SHA }}.uf2
- uses: actions/upload-artifact@v4
with:
name: xrp-wpilib-firmware-${{ env.FIRMWARE_VERSION }}-${{ env.FIRMWARE_COMMIT_SHA }}
path: .pio/build/rpipicow/xrp-wpilib-firmware-*.uf2