Skip to content

Commit

Permalink
Fixed case in platformio.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
doudar committed Jul 17, 2022
1 parent 652680a commit 2bad298
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up python
Expand Down
58 changes: 50 additions & 8 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: pre-commit

on:
pull_request:
on: [push]

jobs:
pre-commit:
Expand All @@ -19,13 +18,56 @@ jobs:
hardware:
- 'Hardware/**'
- name: Ensure changelog is updated
uses: dangoslen/changelog-enforcer@v2
- name: Setup python
uses: dangoslen/changelog-enforcer@v3
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: '3.x'
architecture: 'x64'
- name: Show python version
run: python --version
- name: Install PlatformIO
run: python -m pip install platformio
- name: Check pre-commit hooks
uses: pre-commit/[email protected]
- name: Run platformio build
if: steps.filter.outputs.software == 'true'
uses: docker://kadaan/platformio_esp32:latest
- name: Build firmware
run: platformio run
- name: Build filesystem
run: platformio run --target buildfs
- name: Create artifacts
run: |
7z a SmartSpin2k.zip ./dist/*.*
- name: Archive
uses: actions/upload-artifact@v3
with:
name: firmware
path: .pio/build/*/SmartSpin2k.zip

release:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Download Artifacts
uses: actions/download-artifact@v2
with:
args: --build=release
name: all-artifacts

- name: Get tag info
id: tag_info
run: echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
- name: Create release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag_info.outputs.SOURCE_TAG }}
name: SmartSpin2k ${{ steps.tag_info.outputs.SOURCE_TAG }}
draft: false
prerelease: false
body: ${{ github.event.head_commit.message }}
files: |
SmartSpin2k-*.zip
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ framework = arduino
platform_packages = framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git#2.0.3
toolchain-xtensa32@~2.80400.0
board_build.partitions = min_spiffs.csv
board_build.filesystem = LittleFS
board_build.filesystem = littlefs
upload_speed = 921600
monitor_speed = 512000
monitor_filters = esp32_exception_decoder
Expand Down

0 comments on commit 2bad298

Please sign in to comment.