polylfo/Quadraturia fix - array OOB #112
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PlatformIO CI | |
on: | |
push: | |
paths: | |
- 'software/src/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup env | |
run: | | |
echo "OC_ARTIFACT_TAG=${GITHUB_REF_NAME}-$(sh software/res/oc_build_tag.sh)" | tr '/' '_' >> $GITHUB_ENV | |
- name: Cache PlatformIO | |
uses: actions/cache@v4 | |
with: | |
path: ~/.platformio | |
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
cache: 'pip' | |
cache-dependency-path: '**/requirements.txt' | |
- run: | | |
pip3 install --upgrade pip | |
pip3 install -r .github/workflows/requirements.txt | |
- name: Build firmware | |
working-directory: software/ | |
run: | | |
pio run | |
- name: Copy artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: o_C-${{env.OC_ARTIFACT_TAG}} | |
path: software/.pio/build/*/*.hex |