Skip to content

Commit

Permalink
Upload firmware to target
Browse files Browse the repository at this point in the history
  • Loading branch information
gskjold committed Dec 24, 2023
1 parent 651f724 commit 7503f9a
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/x-test-esp8266.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
workflow_dispatch:

jobs:
flash-firmware:
runs-on: [self-hosted,esp8266]
configure:
runs-on: esp8266
steps:
- uses: actions/checkout@v4
- name: Inject secrets into ini file
Expand Down Expand Up @@ -38,6 +38,10 @@ jobs:
lib_deps = ESP8266WiFi, ESP8266mDNS, ESP8266WebServer, ESP8266HTTPClient, ESP8266httpUpdate, ESP8266SSDP, \${common.lib_deps}
lib_ignore = \${common.lib_ignore}
extra_scripts = \${common.extra_scripts}" > platformio-user.ini
build-frontend:
runs-on: esp8266
needs: configure
steps:
- name: Build with node
run: |
cd lib/SvelteUi/app
Expand All @@ -46,7 +50,10 @@ jobs:
cd -
env:
CI: true
upload:
runs-on: esp8266
needs: build-frontend
- name: PlatformIO lib install
run: pio lib install
- name: PlatformIO run
run: pio run
run: pio run -t upload --upload-port /dev/ttyUSB0

0 comments on commit 7503f9a

Please sign in to comment.