From ec3ba4bfa2ec37df576bcf7a087e5a4ab88d79a4 Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Sun, 13 Oct 2024 21:39:10 +0200 Subject: [PATCH] CI: Update actions --- .github/workflows/format.yml | 5 ++++- .github/workflows/industrial_ci_action.yml | 8 +++++--- .pre-commit-config.yaml | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index c8de9c8..fd135ed 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -16,4 +16,7 @@ jobs: - uses: actions/checkout@v4 - name: Install clang-format-14 run: sudo apt-get install clang-format-14 - - uses: pre-commit/action@v3.0.0 + - uses: actions/setup-python@v5 + with: + python-version: 3.x + - uses: pre-commit/action@v3.0.1 diff --git a/.github/workflows/industrial_ci_action.yml b/.github/workflows/industrial_ci_action.yml index 2c55c9f..543365f 100644 --- a/.github/workflows/industrial_ci_action.yml +++ b/.github/workflows/industrial_ci_action.yml @@ -36,17 +36,19 @@ jobs: steps: - uses: actions/checkout@v4 - name: cache ccache - uses: pat-s/always-upload-cache@v3 + uses: rhaschke/cache@main with: path: ${{ env.CCACHE_DIR }} key: ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }} restore-keys: | ccache-${{ env.CACHE_PREFIX }} + env: + GHA_CACHE_SAVE: always - name: industrial_ci - uses: 'ros-industrial/industrial_ci@master' + uses: ros-industrial/industrial_ci@master env: ${{ matrix.env }} - name: upload test artifacts (on failure) - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: failure() with: name: test-results diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 938f87a..c882b87 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: # Standard hooks - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v5.0.0 hooks: - id: check-added-large-files - id: check-case-conflict