From aeb9b3c311dced9619b87647e0edb64168e12e2f Mon Sep 17 00:00:00 2001 From: simonmicro Date: Sun, 19 May 2024 12:15:56 +0200 Subject: [PATCH] Updated actions (to use Node 20) Also use cached pull for astyle Signed-off-by: simonmicro --- .github/workflows/astyle.yml | 4 +++- .github/workflows/test-FEATURE.yml | 6 +++--- .github/workflows/test-OS.yml | 8 ++++---- .github/workflows/test-OSW.yml | 8 ++++---- 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/astyle.yml b/.github/workflows/astyle.yml index e0cf86656..51f5046bf 100644 --- a/.github/workflows/astyle.yml +++ b/.github/workflows/astyle.yml @@ -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/action-cached-lfs-checkout@v1.2.1 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 diff --git a/.github/workflows/test-FEATURE.yml b/.github/workflows/test-FEATURE.yml index 059989af1..dfb565262 100644 --- a/.github/workflows/test-FEATURE.yml +++ b/.github/workflows/test-FEATURE.yml @@ -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 diff --git a/.github/workflows/test-OS.yml b/.github/workflows/test-OS.yml index c90947076..3af475caa 100644 --- a/.github/workflows/test-OS.yml +++ b/.github/workflows/test-OS.yml @@ -14,7 +14,7 @@ jobs: uses: nschloe/action-cached-lfs-checkout@v1.2.1 with: submodules: recursive - - uses: dorny/paths-filter@v2.11.1 + - uses: dorny/paths-filter@v3 id: filter with: filters: | @@ -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 }} @@ -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 diff --git a/.github/workflows/test-OSW.yml b/.github/workflows/test-OSW.yml index b386373ab..1dd694ae2 100644 --- a/.github/workflows/test-OSW.yml +++ b/.github/workflows/test-OSW.yml @@ -29,7 +29,7 @@ jobs: uses: nschloe/action-cached-lfs-checkout@v1.2.1 with: submodules: recursive - - uses: dorny/paths-filter@v2.11.1 + - uses: dorny/paths-filter@v3 id: filter with: filters: | @@ -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