From 7503f9a07748049221aacfc97d1754ae60d9fc24 Mon Sep 17 00:00:00 2001 From: Gunnar Skjold Date: Sun, 24 Dec 2023 09:12:21 +0100 Subject: [PATCH] Upload firmware to target --- .github/workflows/x-test-esp8266.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/x-test-esp8266.yml b/.github/workflows/x-test-esp8266.yml index b1230ad2..a30a7f1b 100644 --- a/.github/workflows/x-test-esp8266.yml +++ b/.github/workflows/x-test-esp8266.yml @@ -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 @@ -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 @@ -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