Skip to content

Commit 0c9444a

Browse files
Merge pull request #320 from Jason2866/upd_gh_workflows
Update GH Actions to use faster uv and pioarduino core instead pio core
2 parents b67f0e9 + 55a19c0 commit 0c9444a

File tree

4 files changed

+48
-90
lines changed

4 files changed

+48
-90
lines changed

.github/workflows/build-esp32.yml

Lines changed: 24 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -92,26 +92,18 @@ jobs:
9292
steps:
9393
- name: Checkout
9494
uses: actions/checkout@v5
95-
96-
# - name: Cache PlatformIO
97-
# uses: actions/cache@v4
98-
# with:
99-
# key: ${{ runner.os }}-pio
100-
# path: |
101-
# ~/.cache/pip
102-
# ~/.platformio
103-
10495
- name: Python
10596
uses: actions/setup-python@v6
10697
with:
107-
python-version: "3.x"
108-
109-
- name: Install PIO
98+
python-version: "3.13"
99+
- name: Install uv
100+
uses: astral-sh/setup-uv@v6
101+
with:
102+
version: "latest"
103+
enable-cache: false
104+
- name: Install platformio
110105
run: |
111-
python -m pip install --upgrade pip
112-
pip install --upgrade platformio
113-
pip install --upgrade intelhex
114-
pip install --upgrade rich_click
106+
uv pip install --system -U https://github.com/pioarduino/platformio-core/archive/refs/tags/v6.1.18.zip
115107
116108
- name: Build Examples
117109
run: |
@@ -140,26 +132,18 @@ jobs:
140132
steps:
141133
- name: Checkout
142134
uses: actions/checkout@v5
143-
144-
# - name: Cache PlatformIO
145-
# uses: actions/cache@v4
146-
# with:
147-
# key: ${{ runner.os }}-pio
148-
# path: |
149-
# ~/.cache/pip
150-
# ~/.platformio
151-
152135
- name: Python
153136
uses: actions/setup-python@v6
154137
with:
155-
python-version: "3.x"
156-
157-
- name: Install PIO
138+
python-version: "3.13"
139+
- name: Install uv
140+
uses: astral-sh/setup-uv@v6
141+
with:
142+
version: "latest"
143+
enable-cache: false
144+
- name: Install platformio
158145
run: |
159-
python -m pip install --upgrade pip
160-
pip install --upgrade platformio
161-
pip install --upgrade intelhex
162-
pip install --upgrade rich_click
146+
uv pip install --system -U https://github.com/pioarduino/platformio-core/archive/refs/tags/v6.1.18.zip
163147
164148
- name: Build Examples
165149
run: |
@@ -187,26 +171,18 @@ jobs:
187171
steps:
188172
- name: Checkout
189173
uses: actions/checkout@v5
190-
191-
# - name: Cache PlatformIO
192-
# uses: actions/cache@v4
193-
# with:
194-
# key: ${{ runner.os }}-pio
195-
# path: |
196-
# ~/.cache/pip
197-
# ~/.platformio
198-
199174
- name: Python
200175
uses: actions/setup-python@v6
201176
with:
202-
python-version: "3.x"
203-
204-
- name: Install PIO
177+
python-version: "3.13"
178+
- name: Install uv
179+
uses: astral-sh/setup-uv@v6
180+
with:
181+
version: "latest"
182+
enable-cache: false
183+
- name: Install platformio
205184
run: |
206-
python -m pip install --upgrade pip
207-
pip install --upgrade platformio
208-
pip install --upgrade intelhex
209-
pip install --upgrade rich_click
185+
uv pip install --system -U https://github.com/pioarduino/platformio-core/archive/refs/tags/v6.1.18.zip
210186
211187
- name: Build Examples
212188
run: |

.github/workflows/build-esp8266.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -59,24 +59,18 @@ jobs:
5959
steps:
6060
- name: Checkout
6161
uses: actions/checkout@v5
62-
63-
# - name: Cache PlatformIO
64-
# uses: actions/cache@v4
65-
# with:
66-
# key: ${{ runner.os }}-pio
67-
# path: |
68-
# ~/.cache/pip
69-
# ~/.platformio
70-
7162
- name: Python
7263
uses: actions/setup-python@v6
7364
with:
74-
python-version: "3.x"
75-
76-
- name: Install PIO
65+
python-version: "3.13"
66+
- name: Install uv
67+
uses: astral-sh/setup-uv@v6
68+
with:
69+
version: "latest"
70+
enable-cache: false
71+
- name: Install platformio
7772
run: |
78-
python -m pip install --upgrade pip
79-
pip install --upgrade platformio
73+
uv pip install --system -U https://github.com/pioarduino/platformio-core/archive/refs/tags/v6.1.18.zip
8074
8175
- name: Build Examples
8276
run: |

.github/workflows/build-libretiny.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,18 @@ jobs:
2828
steps:
2929
- name: Checkout
3030
uses: actions/checkout@v5
31-
32-
# - name: Cache PlatformIO
33-
# uses: actions/cache@v4
34-
# with:
35-
# key: ${{ runner.os }}-pio
36-
# path: |
37-
# ~/.cache/pip
38-
# ~/.platformio
39-
4031
- name: Python
4132
uses: actions/setup-python@v6
4233
with:
43-
python-version: "3.x"
44-
45-
- name: Install PIO
34+
python-version: "3.13"
35+
- name: Install uv
36+
uses: astral-sh/setup-uv@v6
37+
with:
38+
version: "latest"
39+
enable-cache: false
40+
- name: Install platformio
4641
run: |
47-
python -m pip install --upgrade pip
48-
pip install --upgrade platformio
42+
uv pip install --system -U https://github.com/pioarduino/platformio-core/archive/refs/tags/v6.1.18.zip
4943
5044
- name: Build Examples
5145
run: |

.github/workflows/build-rpi.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,24 +66,18 @@ jobs:
6666
steps:
6767
- name: Checkout
6868
uses: actions/checkout@v5
69-
70-
# - name: Cache PlatformIO
71-
# uses: actions/cache@v4
72-
# with:
73-
# key: ${{ runner.os }}-pio
74-
# path: |
75-
# ~/.cache/pip
76-
# ~/.platformio
77-
7869
- name: Python
7970
uses: actions/setup-python@v6
8071
with:
81-
python-version: "3.x"
82-
83-
- name: Install PIO
72+
python-version: "3.13"
73+
- name: Install uv
74+
uses: astral-sh/setup-uv@v6
75+
with:
76+
version: "latest"
77+
enable-cache: false
78+
- name: Install platformio
8479
run: |
85-
python -m pip install --upgrade pip
86-
pip install --upgrade platformio
80+
uv pip install --system -U https://github.com/pioarduino/platformio-core/archive/refs/tags/v6.1.18.zip
8781
8882
- name: Build Examples
8983
run: |

0 commit comments

Comments
 (0)