From 4f848048f03bf0ec323a4456d3719451573c5f4b 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-EMULATOR.yml | 4 ++-- .github/workflows/test-FEATURE.yml | 12 ++++++------ .github/workflows/test-OS.yml | 12 ++++++------ .github/workflows/test-OSW.yml | 14 +++++++------- 5 files changed, 24 insertions(+), 22 deletions(-) diff --git a/.github/workflows/astyle.yml b/.github/workflows/astyle.yml index e0cf86656..e4bee12e1 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 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-EMULATOR.yml b/.github/workflows/test-EMULATOR.yml index 0efcb0c33..5fcf8c513 100644 --- a/.github/workflows/test-EMULATOR.yml +++ b/.github/workflows/test-EMULATOR.yml @@ -13,7 +13,7 @@ jobs: should_skip: ${{ steps.skip_check.outputs.should_skip }} steps: - id: skip_check - uses: fkirc/skip-duplicate-actions@v5.3.1 + uses: fkirc/skip-duplicate-actions@v5 with: cancel_others: "true" # in a PR with two runs (puch+merge), the latter will cancel the first and run instead concurrent_skipping: "same_content_newer" @@ -35,7 +35,7 @@ jobs: # submodules: recursive # lfs: 'true' - name: Checkout repository and submodules - uses: nschloe/action-cached-lfs-checkout@v1.2.1 + uses: nschloe/action-cached-lfs-checkout@v1 with: submodules: recursive - name: Update packages diff --git a/.github/workflows/test-FEATURE.yml b/.github/workflows/test-FEATURE.yml index 059989af1..577805937 100644 --- a/.github/workflows/test-FEATURE.yml +++ b/.github/workflows/test-FEATURE.yml @@ -13,7 +13,7 @@ jobs: should_skip: ${{ steps.skip_check.outputs.should_skip }} steps: - id: skip_check - uses: fkirc/skip-duplicate-actions@v5.3.1 + uses: fkirc/skip-duplicate-actions@v5 with: cancel_others: "true" # in a PR with two runs (puch+merge), the latter will cancel the first and run instead concurrent_skipping: "same_content_newer" @@ -25,7 +25,7 @@ jobs: if: ${{ needs.check_skip.outputs.should_skip != 'true' }} steps: - name: Checkout repository and submodules - uses: nschloe/action-cached-lfs-checkout@v1.2.1 + uses: nschloe/action-cached-lfs-checkout@v1 with: submodules: recursive - id: get-flag @@ -52,23 +52,23 @@ jobs: language: ${{ fromJson(needs.Find-feature.outputs.default_language) }} steps: - name: Checkout repository and submodules - uses: nschloe/action-cached-lfs-checkout@v1.2.1 + uses: nschloe/action-cached-lfs-checkout@v1 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..a4f97fa66 100644 --- a/.github/workflows/test-OS.yml +++ b/.github/workflows/test-OS.yml @@ -11,10 +11,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository and submodules - uses: nschloe/action-cached-lfs-checkout@v1.2.1 + uses: nschloe/action-cached-lfs-checkout@v1 with: submodules: recursive - - uses: dorny/paths-filter@v2.11.1 + - uses: dorny/paths-filter@v3 id: filter with: filters: | @@ -44,16 +44,16 @@ jobs: language: ${{ fromJson(needs.Find-feature.outputs.get-languages) }} steps: - name: Checkout repository and submodules - uses: nschloe/action-cached-lfs-checkout@v1.2.1 + uses: nschloe/action-cached-lfs-checkout@v1 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..9a39c8e37 100644 --- a/.github/workflows/test-OSW.yml +++ b/.github/workflows/test-OSW.yml @@ -14,7 +14,7 @@ jobs: should_skip: ${{ steps.skip_check.outputs.should_skip }} steps: - id: skip_check - uses: fkirc/skip-duplicate-actions@v5.3.1 + uses: fkirc/skip-duplicate-actions@v5 with: cancel_others: "true" # in a PR with two runs (puch+merge), the latter will cancel the first and run instead concurrent_skipping: "same_content_newer" @@ -26,10 +26,10 @@ jobs: if: ${{ needs.check_skip.outputs.should_skip != 'true' }} steps: - name: Checkout repository and submodules - uses: nschloe/action-cached-lfs-checkout@v1.2.1 + uses: nschloe/action-cached-lfs-checkout@v1 with: submodules: recursive - - uses: dorny/paths-filter@v2.11.1 + - uses: dorny/paths-filter@v3 id: filter with: filters: | @@ -59,23 +59,23 @@ jobs: build-configuration: [debug, release] steps: - name: Checkout repository and submodules - uses: nschloe/action-cached-lfs-checkout@v1.2.1 + uses: nschloe/action-cached-lfs-checkout@v1 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