File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 12
12
- uses : actions/checkout@v2
13
13
with :
14
14
submodules : true
15
+ - name : Cache pip
16
+ uses : actions/cache@v2
17
+ with :
18
+ path : ~/.cache/pip
19
+ key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
20
+ restore-keys : |
21
+ ${{ runner.os }}-pip-
22
+ - name : Cache PlatformIO
23
+ uses : actions/cache@v2
24
+ with :
25
+ path : ~/.platformio
26
+ key : ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
15
27
- uses : actions/setup-python@v2
16
28
with :
17
29
python-version : ' 3.x'
30
+ - name : Install PlatformIO
31
+ run : |
32
+ python -m pip install --upgrade pip
33
+ pip install --upgrade platformio
18
34
- name : Deploy updated JSON
19
35
env :
20
36
TRAVIS_BUILD_DIR : ${{ github.workspace }}
26
42
curl -L -o package_rp2040_index.json "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/releases/download/$TAG/package_rp2040_index.json"
27
43
./package/update_release.py --token ${CI_GITHUB_API_KEY} --repo "$GITHUB_REPOSITORY" --tag global package_rp2040_index.json
28
44
# Upload to Platform.IO
29
- apt-get install -y python3-pip
30
- pip3 install platformio
31
45
curl -LO $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/releases/download/$TAG/rp2040-$TAG.zip
32
46
pio package publish rp2040-$TAG.zip --non-interactive
You can’t perform that action at this time.
0 commit comments