@@ -58,13 +58,25 @@ This variant is default choice for native PlatformIO projects:
5858 runs-on : ubuntu-latest
5959
6060 steps :
61- - uses : actions/checkout@v1
61+ - uses : actions/checkout@v2
62+ - name : Cache pip
63+ uses : actions/cache@v2
64+ with :
65+ path : ~/.cache/pip
66+ key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
67+ restore-keys : |
68+ ${{ runner.os }}-pip-
69+ - name : Cache PlatformIO
70+ uses : actions/cache@v2
71+ with :
72+ path : ~/.platformio
73+ key : ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
6274 - name : Set up Python
63- uses : actions/setup-python@v1
64- - name : Install dependencies
75+ uses : actions/setup-python@v2
76+ - name : Install PlatformIO
6577 run : |
6678 python -m pip install --upgrade pip
67- pip install platformio
79+ pip install --upgrade platformio
6880 - name : Run PlatformIO
6981 run : pio run -e <ID_1> -e <ID_2> -e <ID_N>
7082
@@ -91,13 +103,24 @@ and boards from command line interface:
91103 example : [path/to/test/file.c, examples/file.ino, path/to/test/directory]
92104
93105 steps :
94- - uses : actions/checkout@v1
106+ - uses : actions/checkout@v2
107+ - name : Cache pip
108+ uses : actions/cache@v2
109+ with :
110+ path : ~/.cache/pip
111+ key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
112+ restore-keys : ${{ runner.os }}-pip-
113+ - name : Cache PlatformIO
114+ uses : actions/cache@v2
115+ with :
116+ path : ~/.platformio
117+ key : ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
95118 - name : Set up Python
96- uses : actions/setup-python@v1
97- - name : Install dependencies
119+ uses : actions/setup-python@v2
120+ - name : Install PlatformIO
98121 run : |
99122 python -m pip install --upgrade pip
100- pip install platformio
123+ pip install --upgrade platformio
101124 - name : Run PlatformIO
102125 run : pio ci --board=<ID_1> --board=<ID_2> --board=<ID_N>
103126 env :
@@ -169,14 +192,27 @@ Integration for USB_Host_Shield_2.0 project. The ``workflow.yml`` configuration
169192 example : [examples/Bluetooth/PS3SPP/PS3SPP.ino, examples/pl2303/pl2303_gps/pl2303_gps.ino]
170193
171194 steps :
172- - uses : actions/checkout@v1
195+ - uses : actions/checkout@v2
196+ - name : Cache pip
197+ uses : actions/cache@v2
198+ with :
199+ path : ~/.cache/pip
200+ key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
201+ restore-keys : |
202+ ${{ runner.os }}-pip-
203+ - name : Cache PlatformIO
204+ uses : actions/cache@v2
205+ with :
206+ path : ~/.platformio
207+ key : ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
208+
173209 - name : Set up Python
174- uses : actions/setup-python@v1
210+ uses : actions/setup-python@v2
175211
176- - name : Install dependencies
212+ - name : Install PlatformIO
177213 run : |
178214 python -m pip install --upgrade pip
179- pip install platformio
215+ pip install --upgrade platformio
180216 wget https://github.com/xxxajk/spi4teensy3/archive/master.zip -O /tmp/spi4teensy3.zip
181217 unzip /tmp/spi4teensy3.zip -d /tmp
182218
0 commit comments