Skip to content

Commit eb7ebda

Browse files
committed
chore: Fix CI after nodejs 20 actions deprecation
Signed-off-by: Siddharth Chandrasekaran <sidcha.dev@gmail.com>
1 parent fe2f8c1 commit eb7ebda

5 files changed

Lines changed: 25 additions & 28 deletions

File tree

.github/workflows/build-ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
CmakeBuild:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v5
2020
with:
2121
submodules: recursive
2222
- name: Configure
@@ -25,15 +25,15 @@ jobs:
2525
run: cmake --build . --parallel 7 --target all --target cpp_cp_sample --target cpp_pd_sample
2626
- name: Package
2727
run: cmake --build . --target package --target package_source
28-
- uses: actions/upload-artifact@v4
28+
- uses: actions/upload-artifact@v6
2929
with:
3030
name: libosdp-ubuntu-latest-binaries.zip
3131
path: artifacts/
3232

3333
MakeBuild:
3434
runs-on: ubuntu-latest
3535
steps:
36-
- uses: actions/checkout@v4
36+
- uses: actions/checkout@v5
3737
with:
3838
submodules: recursive
3939
- name: configure
@@ -45,7 +45,7 @@ jobs:
4545
DocBuild:
4646
runs-on: ubuntu-latest
4747
steps:
48-
- uses: actions/checkout@v4
48+
- uses: actions/checkout@v5
4949
with:
5050
submodules: recursive
5151
- name: Install dependencies
@@ -61,7 +61,7 @@ jobs:
6161
Test:
6262
runs-on: ubuntu-latest
6363
steps:
64-
- uses: actions/checkout@v4
64+
- uses: actions/checkout@v5
6565
with:
6666
submodules: recursive
6767
- name: Configure
@@ -74,7 +74,7 @@ jobs:
7474
CheckPatch:
7575
runs-on: ubuntu-latest
7676
steps:
77-
- uses: actions/checkout@v4
77+
- uses: actions/checkout@v5
7878
with:
7979
submodules: recursive
8080
- name: ClangFormatCheck
@@ -86,15 +86,15 @@ jobs:
8686
runs-on: ubuntu-latest
8787
steps:
8888
- name: Checkout sources
89-
uses: actions/checkout@v4
89+
uses: actions/checkout@v5
9090
with:
9191
submodules: recursive
9292
- name: Install pypa/build
9393
run: python3 -m pip install build --user
9494
- name: Build a binary wheel and a source tarball
9595
run: python3 -m build python
9696
- name: Store the distribution packages
97-
uses: actions/upload-artifact@v4
97+
uses: actions/upload-artifact@v6
9898
with:
9999
name: python-package-distributions
100100
path: python/dist/
@@ -107,7 +107,7 @@ jobs:
107107
- examples/platformio/cp.ino
108108
- examples/platformio/pd.ino
109109
steps:
110-
- uses: actions/checkout@v4
110+
- uses: actions/checkout@v5
111111
with:
112112
submodules: recursive
113113
- uses: actions/cache@v4
@@ -116,7 +116,7 @@ jobs:
116116
~/.cache/pip
117117
~/.platformio/.cache
118118
key: ${{ runner.os }}-pio
119-
- uses: actions/setup-python@v5
119+
- uses: actions/setup-python@v6
120120
with:
121121
python-version: '3.11'
122122
- name: Install PlatformIO Core

.github/workflows/create-release.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
# macos-15-intel is an intel runner, macos-14 is apple silicon
2222
os: [ubuntu-latest, macos-15-intel, macos-14, windows-latest]
2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@v5
2525
with:
2626
submodules: recursive
2727
- name: Configure
@@ -31,7 +31,7 @@ jobs:
3131
- name: Pack built binaries
3232
run: cmake --build build --target package
3333
- name: Upload artifacts
34-
uses: actions/upload-artifact@v4
34+
uses: actions/upload-artifact@v6
3535
with:
3636
name: LibOSDP-${{ matrix.os }}-binaries
3737
path: build/artifacts/
@@ -42,20 +42,17 @@ jobs:
4242
runs-on: ubuntu-latest
4343
steps:
4444
- name: Checkout code
45-
uses: actions/checkout@v4
45+
uses: actions/checkout@v5
4646
with:
4747
submodules: recursive
4848
- name: Produce Release Artifacts
4949
run: perl -e 'local $/; $_=<>; print $1 if (/-{4,}\n+\d+.*?\n+(.*?)\n+v\d+\./sg)' CHANGELOG > RELEASE.txt
5050
- name: Create Release
51-
id: create_release
52-
uses: actions/create-release@v1
51+
uses: softprops/action-gh-release@v2
5352
env:
54-
# This token is provided by Actions, you do not need to create your own token
5553
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5654
with:
57-
tag_name: ${{ github.ref }}
58-
release_name: Release ${{ github.ref }}
55+
name: Release ${{ github.ref_name }}
5956
body_path: ./RELEASE.txt
6057
draft: false
6158
prerelease: false

.github/workflows/cross-plaform-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
# macos-15-intel is an intel runner, macos-14 is apple silicon
1919
os: [ubuntu-latest, macos-15-intel, macos-14, windows-latest]
2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v5
2222
with:
2323
submodules: recursive
2424
- name: Configure
@@ -30,7 +30,7 @@ jobs:
3030
- name: Pack built binaries
3131
run: cmake --build build --target package
3232
- name: Upload artifacts
33-
uses: actions/upload-artifact@v4
33+
uses: actions/upload-artifact@v6
3434
with:
3535
name: libosdp-${{ matrix.os }}-binaries
3636
path: build/artifacts/

.github/workflows/publish-platformio.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212

1313
steps:
1414
- name: Checkout the repository
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@v5
1616
with:
1717
submodules: recursive
1818

1919
- name: Set up Python
20-
uses: actions/setup-python@v4
20+
uses: actions/setup-python@v6
2121
with:
2222
python-version: '3.x'
2323

.github/workflows/publish-pypi.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464

6565
steps:
6666
- name: Checkout repository
67-
uses: actions/checkout@v4
67+
uses: actions/checkout@v5
6868
with:
6969
fetch-depth: 0
7070
submodules: recursive
@@ -81,7 +81,7 @@ jobs:
8181

8282
- name: Set up Python (for macOS/Windows runners cibuildwheel uses local Pythons)
8383
if: matrix.platform != 'linux'
84-
uses: actions/setup-python@v4
84+
uses: actions/setup-python@v6
8585
with:
8686
python-version: "3.11"
8787

@@ -104,7 +104,7 @@ jobs:
104104
ls -la ${{ env.CIBW_OUTPUT_DIR }} || true
105105
106106
- name: Upload wheelhouse artifact
107-
uses: actions/upload-artifact@v4
107+
uses: actions/upload-artifact@v6
108108
with:
109109
name: cibw-wheelhouse-${{ matrix.os }}-${{ matrix.image }}-${{ matrix.archs }}
110110
path: ${{ env.CIBW_OUTPUT_DIR }}
@@ -113,7 +113,7 @@ jobs:
113113
name: Build source distribution
114114
runs-on: ubuntu-latest
115115
steps:
116-
- uses: actions/checkout@v4
116+
- uses: actions/checkout@v5
117117
with:
118118
submodules: recursive
119119
- name: Build sdist
@@ -122,7 +122,7 @@ jobs:
122122
pushd python
123123
python -m build --sdist
124124
125-
- uses: actions/upload-artifact@v4
125+
- uses: actions/upload-artifact@v6
126126
with:
127127
name: cibw-sdist
128128
path: python/dist/*.tar.gz
@@ -135,7 +135,7 @@ jobs:
135135
permissions:
136136
id-token: write
137137
steps:
138-
- uses: actions/download-artifact@v4
138+
- uses: actions/download-artifact@v7
139139
with:
140140
pattern: cibw-*
141141
path: python/dist

0 commit comments

Comments
 (0)