-
Notifications
You must be signed in to change notification settings - Fork 36
55 lines (55 loc) · 1.71 KB
/
Copy pathwarp-firmwares.yml
File metadata and controls
55 lines (55 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: WARP Firmwares
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
env: [warp4, warp3, warp2, warp, energy_manager_v2, energy_manager, eltako, smart_energy_broker, esp32_ethernet, esp32]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v6
- uses: actions/cache/restore@v5
with:
path: |
~/.cache/uv
~/.platformio
./software/.pio
./software/packages
key: ${{ matrix.os }}-${{ github.run_id }}
restore-keys: ${{ matrix.os }}-
- name: Install UV
uses: astral-sh/setup-uv@v7
with:
enable-cache: false
- name: Sync UV
working-directory: ./software
run: uv sync
- name: Install Node.js
if: matrix.os == 'windows-latest'
uses: actions/setup-node@v6
with:
node-version: 24
- name: 'Build Firmware: ${{ matrix.env }}'
working-directory: ./software
run: uv run pio run -e ${{ matrix.env }} -t clean && uv run pio run -e ${{ matrix.env }}
- name: Minimize UV cache
run: uv cache prune --ci
- name: 'Deleting Caches: ${{ matrix.os }}-'
if: matrix.env == 'warp4'
run: gh cache delete ${{ matrix.os }}- || true
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
- uses: actions/cache/save@v5
if: matrix.env == 'warp4'
with:
path: |
~/.cache/uv
~/.platformio
./software/.pio
./software/packages
key: ${{ matrix.os }}-${{ github.run_id }}