Skip to content

Commit

Permalink
pio-build.yaml: add debug version and HowToFlash.txt to assets
Browse files Browse the repository at this point in the history
  • Loading branch information
dingo35 committed Feb 17, 2023
1 parent e8b219d commit 454d696
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/pio-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,14 @@ jobs:
run: |
cd SmartEVSE-3
pio lib install
- name: Build
run: PLATFORMIO_BUILD_FLAGS=-DVERSION='\"SERKRI-${{ steps.version.outputs.version }}\"' pio run -d SmartEVSE-3/ -c SmartEVSE-3/platformio.ini
- name: Build debug version
run: |
PLATFORMIO_BUILD_FLAGS='-DVERSION=\"SERKRI-${{ steps.version.outputs.version }}\" -DDBG=1' pio run -d SmartEVSE-3/ -c SmartEVSE-3/platformio.ini
mv ./SmartEVSE-3/.pio/build/release/firmware.bin ./firmware.debug.bin
- name: Build normal version
run: |
PLATFORMIO_BUILD_FLAGS='-DVERSION=\"SERKRI-${{ steps.version.outputs.version }}\" -DDBG=0' pio run -d SmartEVSE-3/ -c SmartEVSE-3/platformio.ini
mv ./firmware.debug.bin ./SmartEVSE-3/.pio/build/release
- name: Build spiffs
run: PLATFORMIO_BUILD_FLAGS=-DVERSION='\"SERKRI-${{ steps.version.outputs.version }}\"' pio run -d SmartEVSE-3/ -c SmartEVSE-3/platformio.ini -t buildfs
- id: artifact
Expand All @@ -77,5 +83,11 @@ jobs:
name: ${{ steps.artifact.outputs.value }}
path: ./SmartEVSE-3/.pio/build/release/*.bin
retention-days: 10
- name: Upload HowToFlash.txt
uses: actions/upload-artifact@v3
with:
name: ${{ steps.artifact.outputs.value }}
path: ./SmartEVSE-3/HowToFlash.txt
retention-days: 10
outputs:
artifact: ${{ steps.artifact.outputs.value }}

0 comments on commit 454d696

Please sign in to comment.