Skip to content

Commit

Permalink
Convert project to Platformio
Browse files Browse the repository at this point in the history
Signed-off-by: hubmartin <hub.martin@gmail.com>
  • Loading branch information
hubmartin committed Jan 24, 2022
1 parent 31a7b8e commit d2b9023
Show file tree
Hide file tree
Showing 11 changed files with 20,727 additions and 407 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: build
on:
push:
branches: [main, master]
release:
types: [published]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Python dependencies
uses: py-actions/py-dependency-install@v2
with:
path: "requirements.txt"
update-pip: "true"
update-setuptools: "false"
update-wheel: "false"
- name: Build PlatformIO project
run: pio run -e release
- name: Set helper variables
if: ${{ github.event_name == 'release' }}
run: |
echo "GITHUB_TAG=${GITHUB_REF#refs/*/}" | tee -a $GITHUB_ENV
echo "REPOSITORY_NAME=${GITHUB_REPOSITORY##*/}" | tee -a $GITHUB_ENV
mv .pio/build/release/firmware.bin ${GITHUB_REPOSITORY##*/}-${GITHUB_REF#refs/*/}.bin
- name: Publish to GitHub Releases
if: ${{ github.event_name == 'release' }}
uses: softprops/action-gh-release@v0.1.5
env:
GITHUB_TOKEN: ${{ github.token }}
with:
files: ${{ env.REPOSITORY_NAME }}-${{ env.GITHUB_TAG }}.bin
12 changes: 5 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/obj/
/out/
/out_release/
obj/
out/
.gitmodules
.DS_Store
Debug_STM32L083CZ_FLASH.ld
bcf-scissor-lift-node.elf.launch
/send/
/Debug/
firmware.bin
.pio/
.vscode/
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

18 changes: 0 additions & 18 deletions app/application.h

This file was deleted.

298 changes: 0 additions & 298 deletions app/at.c

This file was deleted.

Loading

0 comments on commit d2b9023

Please sign in to comment.