From 46acca2dbaaf3467a656b98bf2761f251c6d5e65 Mon Sep 17 00:00:00 2001 From: lumapu Date: Sun, 30 Oct 2022 13:27:02 +0100 Subject: [PATCH] workflow test --- .github/workflows/compile_development.yml | 27 ++++++++++++++++------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/.github/workflows/compile_development.yml b/.github/workflows/compile_development.yml index aeeb46bc8..218996f2e 100644 --- a/.github/workflows/compile_development.yml +++ b/.github/workflows/compile_development.yml @@ -17,40 +17,51 @@ jobs: id: short-sha with: length: 7 - - name: cache-pip + + - name: Cache Pip uses: actions/cache@v3 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} restore-keys: | ${{ runner.os }}-pip- - - name: cache-platformio + + - name: Cache PlatformIO uses: actions/cache@v3 with: path: ~/.platformio key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} - - name: setup-python - uses: actions/setup-python@v2 + + - name: Setup Python + uses: actions/setup-python@v4.3.0 + with: + python-version: "3.x" + - name: Install PlatformIO run: | python -m pip install --upgrade pip pip install --upgrade platformio - - name: update-html + + - name: Convert HTML files working-directory: tools/esp8266/html run: python convert.py + - name: Run PlatformIO run: pio run -d tools/esp8266 --environment esp8266-release --environment esp8266-1m-release --environment esp32-wroom32-release - - name: rename-binary-files + + - name: Rename Binary files id: rename-binary-files working-directory: tools/esp8266/scripts run: python getVersion.py - - name: set-version + + - name: Set Version uses: cschleiden/replace-tokens@v1 with: files: tools/esp8266/User_Manual.md env: VERSION: ${{ steps.rename-binary-files.outputs.name }} - - name: create-artifact + + - name: Create Artifact run: zip --junk-paths ${{ steps.rename-binary-files.outputs.name }}.zip tools/esp8266/.pio/build/out/* tools/esp8266/User_Manual.md - uses: actions/upload-artifact@v3 with: