Skip to content

Commit 8495f78

Browse files
committed
CI: Update actions
1 parent 7e96c32 commit 8495f78

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

.github/workflows/industrial_ci_action.yaml renamed to .github/workflows/build_and_test.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This config uses industrial_ci (https://github.com/ros-industrial/industrial_ci.git).
22
# For troubleshooting, see readme (https://github.com/ros-industrial/industrial_ci/blob/master/README.rst)
33

4-
name: BuildAndTest
4+
name: Build and Test
55

66
on:
77
workflow_dispatch:
@@ -31,30 +31,32 @@ jobs:
3131
name: "${{ matrix.env.ROS_DISTRO }} + ${{ matrix.env.ROS_REPO }}${{ matrix.env.CLANG_TIDY && ' + clang-tidy' || '' }}"
3232
runs-on: ubuntu-latest
3333
steps:
34-
- uses: actions/checkout@v3
34+
- uses: actions/checkout@v4
3535
# The target directory cache doesn't include the source directory because
3636
# that comes from the checkout. See "prepare target_ws for cache" task below
3737
- name: cache target_ws
3838
if: ${{ ! matrix.env.CCOV }}
39-
uses: pat-s/always-upload-cache@v3
39+
uses: actions/cache@v4
4040
with:
41+
save-always: true
4142
path: ${{ env.BASEDIR }}/target_ws
4243
key: target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}-${{ github.run_id }}
4344
restore-keys: |
4445
target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}
4546
- name: cache ccache
46-
uses: pat-s/always-upload-cache@v3
47+
uses: actions/cache@v4
4748
with:
49+
save-always: true
4850
path: ${{ env.CCACHE_DIR }}
4951
key: ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}-${{ github.run_id }}
5052
restore-keys: |
5153
ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}
5254
ccache-${{ env.CACHE_PREFIX }}-
5355
- name: industrial_ci
54-
uses: 'tylerjw/industrial_ci@clang-tidy-modified-filter'
56+
uses: ros-industrial/industrial_ci@master
5557
env: ${{ matrix.env }}
5658
- name: upload test artifacts (on failure)
57-
uses: actions/upload-artifact@v2
59+
uses: actions/upload-artifact@v4
5860
if: failure()
5961
with:
6062
name: test-results

.github/workflows/format.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ on:
88
pull_request:
99
push:
1010
branches:
11-
- main
11+
- master
1212

1313
jobs:
1414
pre-commit:
1515
name: Format
1616
runs-on: ubuntu-20.04
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
- name: Install clang-format-10
2020
run: sudo apt-get install clang-format-10
2121
- name: Install catkin-lint
@@ -29,4 +29,4 @@ jobs:
2929
rosdep update
3030
sudo apt-get -q install catkin-lint
3131
export ROS_DISTRO=noetic
32-
- uses: pre-commit/[email protected].0
32+
- uses: pre-commit/[email protected].1

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
repos:
1616
# Standard hooks
1717
- repo: https://github.com/pre-commit/pre-commit-hooks
18-
rev: v4.4.0
18+
rev: v4.6.0
1919
hooks:
2020
- id: check-added-large-files
2121
- id: check-case-conflict
@@ -34,7 +34,7 @@ repos:
3434
- id: trailing-whitespace
3535

3636
- repo: https://github.com/psf/black
37-
rev: 23.3.0
37+
rev: 24.8.0
3838
hooks:
3939
- id: black
4040

0 commit comments

Comments
 (0)