Skip to content

Commit

Permalink
Merge pull request #14 from Neuroquila-n8fall/ci-fixes
Browse files Browse the repository at this point in the history
Fix CI
  • Loading branch information
Neuroquila-n8fall authored Oct 6, 2022
2 parents 314e58e + c840362 commit 8af435b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ jobs:
- name: Install platformIO libraries
run: pio lib install
- name: Build Production Image
run: pio run -e production -include version.h
run: pio run -e github
- name: Archive Firmware
uses: actions/upload-artifact@v3
with:
name: firmware.bin
path: .pio/build/production/firmware.bin
path: .pio/build/github/firmware.bin
- name: Build Production FS Image
run: pio run -e production -t buildfs
run: pio run -e github -t buildfs
- name: Archive Filesystem
uses: actions/upload-artifact@v3
with:
name: littlefs.bin
path: .pio/build/production/littlefs.bin
path: .pio/build/github/littlefs.bin
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -62,7 +62,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: .pio/build/production/firmware.bin
asset_path: .pio/build/github/firmware.bin
asset_name: firmware.bin
asset_content_type: application/octet-stream
- name: Upload Release Asset Filesystem
Expand All @@ -72,6 +72,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: .pio/build/production/littlefs.bin
asset_path: .pio/build/github/littlefs.bin
asset_name: littlefs.bin
asset_content_type: application/octet-stream
6 changes: 6 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,9 @@ upload_port = ${custom.upload_port}
monitor_port = socket://${custom.upload_port}:23
build_flags =
${env:production.build_flags}

[env:github]
build_flags =
${env.build_flags}
-include version.h
-D ENV=${this.__env__}

0 comments on commit 8af435b

Please sign in to comment.