update workflows to use new pio builds

This commit is contained in:
proddy
2025-10-23 22:35:57 +02:00
parent e685284f72
commit 8bb16ed3a7
5 changed files with 39 additions and 33 deletions

View File

@@ -20,12 +20,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v5
- name: Install python 3.11 - name: Install python 3.13
uses: actions/setup-python@v5 uses: actions/setup-python@v6
with: with:
python-version: '3.11' python-version: '3.13'
- name: Install PlatformIO - name: Install PlatformIO
run: | run: |

View File

@@ -17,7 +17,7 @@ jobs:
BUILD_WRAPPER_OUT_DIR: bw-output BUILD_WRAPPER_OUT_DIR: bw-output
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v5
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Install Build Wrapper - name: Install Build Wrapper

View File

@@ -16,17 +16,17 @@ jobs:
steps: steps:
- name: Install python 3.13 - name: Install python 3.13
uses: actions/setup-python@v5 uses: actions/setup-python@v6
with: with:
python-version: '3.13' python-version: '3.13'
- name: Install Node.js 22 - name: Install Node.js 24
uses: actions/setup-node@v4 uses: actions/setup-node@v6
with: with:
node-version: 22 node-version: 24
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v5
- name: Enable Corepack - name: Enable Corepack
run: corepack enable pnpm run: corepack enable pnpm
@@ -37,16 +37,19 @@ jobs:
pip install -U platformio pip install -U platformio
python -m pip install intelhex python -m pip install intelhex
- name: Build the WebUI - name: Build webUI
run: | run: |
cd interface platformio run -e build_webUI
pnpm install
pnpm typesafe-i18n --no-watch
sed -i "s/= 'pl'/= 'en'/" ./src/i18n/i18n-util.ts
pnpm build
pnpm webUI
- name: Build all PIO target environments - name: Build modbus
run: |
platformio run -e build_modbus
- name: Build standalone
run: |
platformio run -e build_standalone
- name: Build all PIO target environments, from default_envs
run: | run: |
platformio run platformio run

View File

@@ -8,7 +8,7 @@ jobs:
stale: stale:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/stale@v9 - uses: actions/stale@v10
with: with:
repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 30 days-before-stale: 30

View File

@@ -4,7 +4,7 @@ on:
workflow_dispatch: workflow_dispatch:
push: push:
branches: branches:
- 'dev2' - 'test'
permissions: permissions:
contents: read contents: read
@@ -18,17 +18,17 @@ jobs:
steps: steps:
- name: Install python 3.13 - name: Install python 3.13
uses: actions/setup-python@v5 uses: actions/setup-python@v6
with: with:
python-version: '3.13' python-version: '3.13'
- name: Install Node.js 22 - name: Install Node.js 24
uses: actions/setup-node@v4 uses: actions/setup-node@v6
with: with:
node-version: 22 node-version: 24
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v5
- name: Enable Corepack - name: Enable Corepack
run: corepack enable pnpm run: corepack enable pnpm
@@ -45,16 +45,19 @@ jobs:
pip install -U platformio pip install -U platformio
python -m pip install intelhex python -m pip install intelhex
- name: Build the WebUI - name: Build webUI
run: | run: |
cd interface platformio run -e build_webUI
pnpm install
pnpm typesafe-i18n --no-watch
sed -i "s/= 'pl'/= 'en'/" ./src/i18n/i18n-util.ts
pnpm build
pnpm webUI
- name: Build all target environments - name: Build modbus
run: |
platformio run -e build_modbus
- name: Build standalone
run: |
platformio run -e build_standalone
- name: Build all PIO target environments, from default_envs
run: | run: |
platformio run platformio run