Skip to content

Commit ed5003b

Browse files
authored
Upgrade CI actions to latest versions (#6893)
* Upgrade actions * Update remaining actions * Update CHANGELOG.md * Update CHANGELOG.md
1 parent 46dc660 commit ed5003b

File tree

2 files changed

+24
-23
lines changed

2 files changed

+24
-23
lines changed

.github/workflows/osrm-backend.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ jobs:
3131
env:
3232
BUILD_TYPE: Release
3333
steps:
34-
- uses: actions/checkout@v3
34+
- uses: actions/checkout@v4
3535
- run: pip install "conan<2.0.0"
3636
- run: conan --version
3737
- run: cmake --version
38-
- uses: actions/setup-node@v3
38+
- uses: actions/setup-node@v4
3939
with:
4040
node-version: 18
4141
- run: node --version
@@ -47,7 +47,7 @@ jobs:
4747
echo PUBLISH=$([[ "${GITHUB_REF:-}" == "refs/tags/v${PACKAGE_JSON_VERSION}" ]] && echo "On" || echo "Off") >> $GITHUB_ENV
4848
- run: npm install --ignore-scripts
4949
- run: npm link --ignore-scripts
50-
- uses: microsoft/setup-msbuild@v1.1
50+
- uses: microsoft/setup-msbuild@v2
5151
- name: Build
5252
run: |
5353
.\scripts\ci\windows-build.bat
@@ -76,13 +76,13 @@ jobs:
7676
format-taginfo-docs:
7777
runs-on: ubuntu-22.04
7878
steps:
79-
- uses: actions/checkout@v3
79+
- uses: actions/checkout@v4
8080
- name: Use Node.js
81-
uses: actions/setup-node@v3
81+
uses: actions/setup-node@v4
8282
with:
8383
node-version: 18
8484
- name: Enable Node.js cache
85-
uses: actions/cache@v3
85+
uses: actions/cache@v4
8686
with:
8787
path: ~/.npm
8888
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -106,9 +106,9 @@ jobs:
106106
continue-on-error: false
107107
steps:
108108
- name: Check out the repo
109-
uses: actions/checkout@v3
109+
uses: actions/checkout@v4
110110
- name: Enable osm.pbf cache
111-
uses: actions/cache@v3
111+
uses: actions/cache@v4
112112
with:
113113
path: berlin-latest.osm.pbf
114114
key: v1-berlin-osm-pbf
@@ -342,36 +342,36 @@ jobs:
342342
OSRM_CONNECTION_RETRIES: ${{ matrix.OSRM_CONNECTION_RETRIES }}
343343
OSRM_CONNECTION_EXP_BACKOFF_COEF: ${{ matrix.OSRM_CONNECTION_EXP_BACKOFF_COEF }}
344344
steps:
345-
- uses: actions/checkout@v3
345+
- uses: actions/checkout@v4
346346
- name: Build machine architecture
347347
run: uname -m
348348
- name: Use Node.js
349-
uses: actions/setup-node@v3
349+
uses: actions/setup-node@v4
350350
with:
351351
node-version: ${{ matrix.node }}
352352
- name: Enable Node.js cache
353-
uses: actions/cache@v3
353+
uses: actions/cache@v4
354354
with:
355355
path: ~/.npm
356356
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
357357
restore-keys: |
358358
${{ runner.os }}-node-
359359
- name: Enable compiler cache
360-
uses: actions/cache@v3
360+
uses: actions/cache@v4
361361
with:
362362
path: ~/.ccache
363363
key: ccache-${{ matrix.name }}-${{ github.sha }}
364364
restore-keys: |
365365
ccache-${{ matrix.name }}-
366366
- name: Enable Conan cache
367-
uses: actions/cache@v3
367+
uses: actions/cache@v4
368368
with:
369369
path: ~/.conan
370370
key: v9-conan-${{ matrix.name }}-${{ github.sha }}
371371
restore-keys: |
372372
v9-conan-${{ matrix.name }}-
373373
- name: Enable test cache
374-
uses: actions/cache@v3
374+
uses: actions/cache@v4
375375
with:
376376
path: ${{github.workspace}}/test/cache
377377
key: v4-test-${{ matrix.name }}-${{ github.sha }}
@@ -511,7 +511,7 @@ jobs:
511511
512512
- name: Use Node 18
513513
if: ${{ matrix.NODE_PACKAGE_TESTS_ONLY == 'ON' }}
514-
uses: actions/setup-node@v3
514+
uses: actions/setup-node@v4
515515
with:
516516
node-version: 18
517517
- name: Run Node package tests on Node 18
@@ -521,7 +521,7 @@ jobs:
521521
npm run nodejs-tests
522522
- name: Use Node 20
523523
if: ${{ matrix.NODE_PACKAGE_TESTS_ONLY == 'ON' }}
524-
uses: actions/setup-node@v3
524+
uses: actions/setup-node@v4
525525
with:
526526
node-version: 20
527527
- name: Run Node package tests on Node 20
@@ -531,7 +531,7 @@ jobs:
531531
npm run nodejs-tests
532532
- name: Use Node latest
533533
if: ${{ matrix.NODE_PACKAGE_TESTS_ONLY == 'ON' }}
534-
uses: actions/setup-node@v3
534+
uses: actions/setup-node@v4
535535
with:
536536
node-version: latest
537537
- name: Run Node package tests on Node-latest
@@ -541,7 +541,7 @@ jobs:
541541
npm run nodejs-tests
542542
543543
- name: Upload test logs
544-
uses: actions/upload-artifact@v3
544+
uses: actions/upload-artifact@v4
545545
if: failure()
546546
with:
547547
name: logs
@@ -557,7 +557,7 @@ jobs:
557557
# # Uploading report to CodeCov
558558
# - name: Upload code coverage
559559
# if: ${{ matrix.ENABLE_COVERAGE == 'ON' }}
560-
# uses: codecov/codecov-action@v1
560+
# uses: codecov/codecov-action@v4
561561
# with:
562562
# files: coverage.info
563563
# name: codecov-osrm-backend
@@ -595,21 +595,21 @@ jobs:
595595
GITHUB_REPOSITORY: ${{ github.repository }}
596596
steps:
597597
- name: Enable compiler cache
598-
uses: actions/cache@v3
598+
uses: actions/cache@v4
599599
with:
600600
path: ~/.ccache
601601
key: v1-ccache-benchmarks-${{ github.sha }}
602602
restore-keys: |
603603
v1-ccache-benchmarks-
604604
- name: Enable Conan cache
605-
uses: actions/cache@v3
605+
uses: actions/cache@v4
606606
with:
607607
path: ~/.conan
608608
key: v1-conan-benchmarks-${{ github.sha }}
609609
restore-keys: |
610610
v1-conan-benchmarks-
611611
- name: Checkout PR Branch
612-
uses: actions/checkout@v3
612+
uses: actions/checkout@v4
613613
with:
614614
ref: ${{ github.head_ref }}
615615
path: pr
@@ -624,7 +624,7 @@ jobs:
624624
cd ..
625625
make -C test/data
626626
- name: Checkout Base Branch
627-
uses: actions/checkout@v3
627+
uses: actions/checkout@v4
628628
with:
629629
ref: ${{ github.event.pull_request.base.ref }}
630630
path: base

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- ADDED: Add support for opposite approach request parameter. [#6842](https://github.com/Project-OSRM/osrm-backend/pull/6842)
88
- ADDED: Add support for accessing edge flags in `process_segment` [#6658](https://github.com/Project-OSRM/osrm-backend/pull/6658)
99
- Build:
10+
- CHANGED: Upgrade CI actions to latest versions [#6893](https://github.com/Project-OSRM/osrm-backend/pull/6893)
1011
- ADDED: Add CI job which builds OSRM with gcc 12. [#6455](https://github.com/Project-OSRM/osrm-backend/pull/6455)
1112
- CHANGED: Upgrade to clang-tidy 15. [#6439](https://github.com/Project-OSRM/osrm-backend/pull/6439)
1213
- CHANGED: Update actions/cache to v3. [#6420](https://github.com/Project-OSRM/osrm-backend/pull/6420)

0 commit comments

Comments
 (0)