Skip to content

Commit 7710d03

Browse files
authored
Merge pull request #80 from openppg/actions-bump
Cache PlO in CI
2 parents 510d74d + 7fe34d4 commit 7710d03

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

.github/workflows/config.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
pull_request:
55
types: [opened, reopened, synchronize]
66

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
711
jobs:
812
cpplint:
913
name: CPP Lint
@@ -37,7 +41,13 @@ jobs:
3741
uses: actions/setup-python@v6
3842
with:
3943
python-version: 3.x
40-
- name: Install Platform IO
44+
- name: Cache PlatformIO
45+
uses: actions/cache@v4
46+
with:
47+
path: ~/.platformio
48+
key: pio-${{ hashFiles('platformio.ini') }}
49+
restore-keys: pio-
50+
- name: Install PlatformIO
4151
run: |
4252
python -m pip install --upgrade pip
4353
pip install -U platformio
@@ -61,7 +71,13 @@ jobs:
6171
uses: actions/setup-python@v6
6272
with:
6373
python-version: 3.x
64-
- name: Install Platform IO
74+
- name: Cache PlatformIO
75+
uses: actions/cache@v4
76+
with:
77+
path: ~/.platformio
78+
key: pio-${{ hashFiles('platformio.ini') }}
79+
restore-keys: pio-
80+
- name: Install PlatformIO
6581
run: |
6682
python -m pip install --upgrade pip
6783
pip install -U platformio

0 commit comments

Comments
 (0)