Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Port Speed Controller Firmware to PlatformIO, Clean up, and Correct Driver Implementations #23

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/speed_controller.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Speed Controller CI

on:
# Trigger the workflow on push but only for changes to relevant files
push:
paths:
- 'Speed_Controller/**'
- 'Peripherals/**'
- '.github/workflows/speed_controller.yml'

# Allow running this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v2
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Set up Python
uses: actions/setup-python@v2
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Run PlatformIO Build
run: |
cd Speed_Controller
pio run -v
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

!*.c
!*.h
!platformio.ini
!*.uvprojx
!*.ino
!*.gitignore
!*.gitignore
Loading