Skip to content

Commit 281185e

Browse files
committed
ci: Use actions/cache@v3
This commit updates the CI workflows to use the latest "cache" action v3, which is based on Node.js 16. Note that Node.js 12-based actions are now deprecated by GitHub and may stop working in the near future. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent cb240b4 commit 281185e

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

.github/workflows/coding_guidelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fetch-depth: 0
1515

1616
- name: cache-pip
17-
uses: actions/cache@v1
17+
uses: actions/cache@v3
1818
with:
1919
path: ~/.cache/pip
2020
key: ${{ runner.os }}-doc-pip

.github/workflows/compliance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
fetch-depth: 0
3535

3636
- name: cache-pip
37-
uses: actions/cache@v1
37+
uses: actions/cache@v3
3838
with:
3939
path: ~/.cache/pip
4040
key: ${{ runner.os }}-doc-pip

.github/workflows/devicetree_checks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ jobs:
4040
python-version: ${{ matrix.python-version }}
4141
- name: cache-pip-linux
4242
if: startsWith(runner.os, 'Linux')
43-
uses: actions/cache@v1
43+
uses: actions/cache@v3
4444
with:
4545
path: ~/.cache/pip
4646
key: ${{ runner.os }}-pip-${{ matrix.python-version }}
4747
restore-keys: |
4848
${{ runner.os }}-pip-${{ matrix.python-version }}
4949
- name: cache-pip-mac
5050
if: startsWith(runner.os, 'macOS')
51-
uses: actions/cache@v1
51+
uses: actions/cache@v3
5252
with:
5353
path: ~/Library/Caches/pip
5454
# Trailing '-' was just to get a different cache name
@@ -57,7 +57,7 @@ jobs:
5757
${{ runner.os }}-pip-${{ matrix.python-version }}-
5858
- name: cache-pip-win
5959
if: startsWith(runner.os, 'Windows')
60-
uses: actions/cache@v1
60+
uses: actions/cache@v3
6161
with:
6262
path: ~\AppData\Local\pip\Cache
6363
key: ${{ runner.os }}-pip-${{ matrix.python-version }}

.github/workflows/doc-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
sudo apt-get install -y ninja-build doxygen graphviz
5151
5252
- name: cache-pip
53-
uses: actions/cache@v1
53+
uses: actions/cache@v3
5454
with:
5555
path: ~/.cache/pip
5656
key: pip-${{ hashFiles('scripts/requirements-doc.txt') }}
@@ -128,7 +128,7 @@ jobs:
128128
apt-get install -y python3-pip ninja-build doxygen graphviz librsvg2-bin
129129
130130
- name: cache-pip
131-
uses: actions/cache@v1
131+
uses: actions/cache@v3
132132
with:
133133
path: ~/.cache/pip
134134
key: pip-${{ hashFiles('scripts/requirements-doc.txt') }}

.github/workflows/twister_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
python-version: ${{ matrix.python-version }}
3939
- name: cache-pip-linux
4040
if: startsWith(runner.os, 'Linux')
41-
uses: actions/cache@v1
41+
uses: actions/cache@v3
4242
with:
4343
path: ~/.cache/pip
4444
key: ${{ runner.os }}-pip-${{ matrix.python-version }}

.github/workflows/west_cmds.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ jobs:
4141
python-version: ${{ matrix.python-version }}
4242
- name: cache-pip-linux
4343
if: startsWith(runner.os, 'Linux')
44-
uses: actions/cache@v1
44+
uses: actions/cache@v3
4545
with:
4646
path: ~/.cache/pip
4747
key: ${{ runner.os }}-pip-${{ matrix.python-version }}
4848
restore-keys: |
4949
${{ runner.os }}-pip-${{ matrix.python-version }}
5050
- name: cache-pip-mac
5151
if: startsWith(runner.os, 'macOS')
52-
uses: actions/cache@v1
52+
uses: actions/cache@v3
5353
with:
5454
path: ~/Library/Caches/pip
5555
# Trailing '-' was just to get a different cache name
@@ -58,7 +58,7 @@ jobs:
5858
${{ runner.os }}-pip-${{ matrix.python-version }}-
5959
- name: cache-pip-win
6060
if: startsWith(runner.os, 'Windows')
61-
uses: actions/cache@v1
61+
uses: actions/cache@v3
6262
with:
6363
path: ~\AppData\Local\pip\Cache
6464
key: ${{ runner.os }}-pip-${{ matrix.python-version }}

0 commit comments

Comments
 (0)