Skip to content

Commit

Permalink
Updated actions (to use Node 20)
Browse files Browse the repository at this point in the history
Also use cached pull for astyle

Signed-off-by: simonmicro <[email protected]>
  • Loading branch information
simonmicro committed May 19, 2024
1 parent 5d4a1a3 commit aeb9b3c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/astyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.repository == 'Open-Smartwatch/open-smartwatch-os' }}
steps:
- uses: actions/checkout@v1
- name: Checkout repository and submodules
uses: nschloe/[email protected]
with:
# submodules: recursive # do not access any submodules to not accidentially modify them
ref: ${{ github.head_ref }}
- name: astyle
uses: addnab/docker-run-action@v3
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-FEATURE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,19 @@ jobs:
with:
submodules: recursive
- name: Cache pip
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: pip-${{ runner.os }}
- name: Cache PlatformIO
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.platformio
key: platformio-${{ runner.os }}
- name: Install swig
run: sudo apt-get update && sudo apt-get -y install swig
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install PlatformIO
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-OS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: nschloe/[email protected]
with:
submodules: recursive
- uses: dorny/paths-filter@v2.11.1
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
Expand Down Expand Up @@ -48,12 +48,12 @@ jobs:
with:
submodules: recursive
- name: Cache pip
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: pip-${{ runner.os }}
- name: Cache PlatformIO
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.platformio
key: platformio-${{ runner.os }}
Expand All @@ -66,7 +66,7 @@ jobs:
run: brew install swig

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install PlatformIO
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-OSW.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: nschloe/[email protected]
with:
submodules: recursive
- uses: dorny/paths-filter@v2.11.1
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
Expand Down Expand Up @@ -63,19 +63,19 @@ jobs:
with:
submodules: recursive
- name: Cache pip
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: pip-${{ runner.os }}
- name: Cache PlatformIO
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.platformio
key: platformio-${{ runner.os }}
- name: Install swig
run: sudo apt-get update && sudo apt-get -y install swig
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install PlatformIO
Expand Down

0 comments on commit aeb9b3c

Please sign in to comment.