Skip to content

Commit a6a6d66

Browse files
committed
update all CI
includes fix for refactoring Doxyfile path and fix for deprecated `::set-output` cmd
1 parent 4cb0e1a commit a6a6d66

File tree

5 files changed

+53
-38
lines changed

5 files changed

+53
-38
lines changed

.github/workflows/build_arduino.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,16 @@ jobs:
2222

2323
steps:
2424
- uses: actions/checkout@v3
25-
- uses: actions/setup-python@v3
25+
- uses: actions/setup-python@v4
26+
with:
27+
python-version: 3.x
2628
# Ubuntu 20.04.4 LTS reunners ship with clang-tools v12
2729
# - name: Install clang-tools
2830
# uses: KyleMayes/install-llvm-action@v1
2931
# with:
3032
# version: 12
3133
- name: Install linter python package
32-
run: python3 -m pip install git+https://github.com/cpp-linter/cpp-linter-action@v1
34+
run: python3 -m pip install cpp-linter
3335
- name: run linter as a python package
3436
id: linter
3537
run: |
@@ -103,7 +105,7 @@ jobs:
103105

104106
steps:
105107
- name: Checkout
106-
uses: actions/checkout@v2
108+
uses: actions/checkout@v3
107109
- name: Compile examples
108110
uses: arduino/compile-sketches@main
109111
with:
@@ -128,7 +130,7 @@ jobs:
128130
# This step is needed to pass the size data to the report job
129131
- name: Upload sketches report to workflow artifact
130132
if: ${{ matrix.enable-deltas-report }}
131-
uses: actions/upload-artifact@v2
133+
uses: actions/upload-artifact@v3
132134
with:
133135
name: ${{ env.SKETCHES_REPORTS }}
134136
path: ${{ env.SKETCHES_REPORTS }}
@@ -140,7 +142,7 @@ jobs:
140142
runs-on: ubuntu-latest
141143
steps:
142144
- name: Download sketches reports artifact
143-
uses: actions/download-artifact@v2
145+
uses: actions/download-artifact@v3
144146
with:
145147
name: ${{ env.SKETCHES_REPORTS }}
146148
path: ${{ env.SKETCHES_REPORTS }}

.github/workflows/build_platformIO.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,16 @@ jobs:
2222
runs-on: ubuntu-latest
2323

2424
steps:
25-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v3
2626

2727
- name: get latest release version number
2828
id: latest_ver
2929
run: echo "::set-output name=release::$(awk -F "=" '/version/ {print $2}' library.properties)"
3030

3131
- name: Set up Python
32-
uses: actions/setup-python@v2
32+
uses: actions/setup-python@v4
33+
with:
34+
python-version: 3.x
3335

3436
- name: Install PlatformIO
3537
run: |
@@ -40,17 +42,17 @@ jobs:
4042
run: pio package pack -o PlatformIO-RF24Network-${{ steps.latest_ver.outputs.release }}.tar.gz
4143

4244
- name: Save artifact
43-
uses: actions/upload-artifact@v2
45+
uses: actions/upload-artifact@v3
4446
with:
4547
name: "PIO_pkg_RF24Network"
4648
path: PlatformIO*.tar.gz
4749

4850
- name: Upload Release assets
4951
if: github.event_name == 'release'
50-
uses: csexton/release-asset-action@master
52+
uses: shogo82148/actions-upload-release-asset@v1
5153
with:
52-
pattern: "PlatformIO*.tar.gz"
53-
github-token: ${{ secrets.GITHUB_TOKEN }}
54+
upload_url: ${{ github.event.release.upload_url }}
55+
asset_path: "PlatformIO*.tar.gz"
5456

5557
- name: upload package to PlatformIO Registry
5658
if: github.event_name == 'release' && github.event_type != 'edited'
@@ -64,14 +66,16 @@ jobs:
6466

6567
steps:
6668
- uses: actions/checkout@v3
67-
- uses: actions/setup-python@v3
69+
- uses: actions/setup-python@v4
70+
with:
71+
python-version: 3.x
6872
# Ubuntu 20.04.4 LTS reunners ship with clang-tools v12
6973
# - name: Install clang-tools
7074
# uses: KyleMayes/install-llvm-action@v1
7175
# with:
7276
# version: 12
7377
- name: Install linter python package
74-
run: python3 -m pip install git+https://github.com/cpp-linter/cpp-linter-action@v1
78+
run: python3 -m pip install cpp-linter
7579
- name: run linter as a python package
7680
id: linter
7781
run: |
@@ -109,21 +113,23 @@ jobs:
109113
- "teensylc"
110114

111115
steps:
112-
- uses: actions/checkout@v2
116+
- uses: actions/checkout@v3
113117
- name: Cache pip
114-
uses: actions/cache@v2
118+
uses: actions/cache@v3
115119
with:
116120
path: ~/.cache/pip
117121
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
118122
restore-keys: |
119123
${{ runner.os }}-pip-
120124
- name: Cache PlatformIO
121-
uses: actions/cache@v2
125+
uses: actions/cache@v3
122126
with:
123127
path: ~/.platformio
124128
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
125129
- name: Set up Python
126-
uses: actions/setup-python@v2
130+
uses: actions/setup-python@v4
131+
with:
132+
python-version: 3.x
127133
- name: Install PlatformIO
128134
run: |
129135
python -m pip install --upgrade pip

.github/workflows/build_rp2xxx.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,16 @@ jobs:
2929

3030
steps:
3131
- uses: actions/checkout@v3
32-
- uses: actions/setup-python@v3
32+
- uses: actions/setup-python@v4
33+
with:
34+
python-version: 3.x
3335
# Ubuntu 20.04.4 LTS reunners ship with clang-tools v12
3436
# - name: Install clang-tools
3537
# uses: KyleMayes/install-llvm-action@v1
3638
# with:
3739
# version: 12
3840
- name: Install linter python package
39-
run: python3 -m pip install git+https://github.com/cpp-linter/cpp-linter-action@v1
41+
run: python3 -m pip install cpp-linter
4042
- name: run linter as a python package
4143
id: linter
4244
run: |
@@ -77,12 +79,12 @@ jobs:
7779

7880
steps:
7981
- name: checkout RF24Network lib
80-
uses: actions/checkout@v2
82+
uses: actions/checkout@v3
8183
with:
8284
path: RF24Network
8385

8486
- name: checkout RF24 lib
85-
uses: actions/checkout@v2
87+
uses: actions/checkout@v3
8688
with:
8789
repository: nRF24/RF24
8890
path: RF24
@@ -91,7 +93,7 @@ jobs:
9193
run: sudo apt update && sudo apt install gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential
9294

9395
- name: Clone pico-sdk
94-
uses: actions/checkout@v2
96+
uses: actions/checkout@v3
9597
with:
9698
repository: raspberrypi/pico-sdk
9799
# master branch is latest stable release
@@ -121,7 +123,7 @@ jobs:
121123
run: cmake --build . --config $BUILD_TYPE
122124

123125
- name: Save artifact
124-
uses: actions/upload-artifact@v2
126+
uses: actions/upload-artifact@v3
125127
with:
126128
name: examples_pico_${{ matrix.board }}
127129
path: |

.github/workflows/doxygen.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ jobs:
3232
runs-on: ubuntu-latest
3333

3434
steps:
35-
- uses: actions/checkout@v2
35+
- uses: actions/checkout@v3
3636
- name: get latest release version number
3737
id: latest_ver
38-
run: echo "::set-output name=release::$(awk -F "=" '/version/ {print $2}' library.properties)"
38+
run: echo "release=$(awk -F "=" '/version/ {print $2}' library.properties)" >> $GITHUB_OUTPUT
3939
- name: overwrite doxygen tags
4040
run: |
4141
touch doxygenAction
@@ -45,7 +45,7 @@ jobs:
4545
run: sudo apt-get install libclang1-12 libclang-cpp12
4646
- name: install doxygen from SF binary archives
4747
env:
48-
DOXYGEN_VERSION: '1.9.4'
48+
DOXYGEN_VERSION: '1.9.6'
4949
run: |
5050
mkdir doxygen && cd doxygen
5151
curl -L https://sourceforge.net/projects/doxygen/files/rel-$DOXYGEN_VERSION/doxygen-$DOXYGEN_VERSION.linux.bin.tar.gz > doxygen.tar.gz
@@ -54,8 +54,9 @@ jobs:
5454
cd doxygen-$DOXYGEN_VERSION
5555
sudo make install
5656
- run: doxygen
57+
working-directory: docs
5758
- name: Save doxygen docs as artifact
58-
uses: actions/upload-artifact@v2
59+
uses: actions/upload-artifact@v3
5960
with:
6061
name: "RF24Network_doxygen_docs"
6162
path: ${{ github.workspace }}/docs/html
@@ -67,14 +68,16 @@ jobs:
6768
publish_dir: ./docs/html
6869

6970
# build pretty docs using doxygen XML output with Sphinx
70-
- uses: actions/setup-python@v2
71+
- uses: actions/setup-python@v4
72+
with:
73+
python-version: 3.x
7174
- name: Install sphinx deps
7275
run: python -m pip install -r docs/sphinx/requirements.txt
7376
- name: build docs with Sphinx
7477
working-directory: docs
7578
run: sphinx-build sphinx _build
7679
- name: Save sphinx docs as artifact
77-
uses: actions/upload-artifact@v2
80+
uses: actions/upload-artifact@v3
7881
with:
7982
name: "RF24Network_sphinx_docs"
8083
path: ${{ github.workspace }}/docs/_build

.github/workflows/linux_build.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,16 @@ jobs:
3939

4040
steps:
4141
- uses: actions/checkout@v3
42-
- uses: actions/setup-python@v3
42+
- uses: actions/setup-python@v4
43+
with:
44+
python-version: 3.x
4345
# Ubuntu 20.04.4 LTS reunners ship with clang-tools v12
4446
# - name: Install clang-tools
4547
# uses: KyleMayes/install-llvm-action@v1
4648
# with:
4749
# version: 12
4850
- name: Install linter python package
49-
run: python3 -m pip install git+https://github.com/cpp-linter/cpp-linter-action@v1
51+
run: python3 -m pip install cpp-linter
5052
- name: run linter as a python package
5153
id: linter
5254
run: |
@@ -106,7 +108,7 @@ jobs:
106108
sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
107109
108110
- name: checkout RF24
109-
uses: actions/checkout@v2
111+
uses: actions/checkout@v3
110112
with:
111113
repository: nRF24/RF24
112114

@@ -120,7 +122,7 @@ jobs:
120122
sudo make install
121123
122124
- name: Chaeckout RF24Network repo
123-
uses: actions/checkout@v2
125+
uses: actions/checkout@v3
124126

125127
- name: create CMake build environment
126128
run: cmake -E make_directory ${{ github.workspace }}/build
@@ -145,7 +147,7 @@ jobs:
145147
run: sudo cpack
146148

147149
- name: Save artifact
148-
uses: actions/upload-artifact@v2
150+
uses: actions/upload-artifact@v3
149151
with:
150152
name: "pkg_RF24Network"
151153
path: |
@@ -154,10 +156,10 @@ jobs:
154156
155157
- name: Upload Release assets
156158
if: github.event_name == 'release' && (matrix.toolchain.compiler == 'armhf' || matrix.toolchain.compiler == 'arm64')
157-
uses: csexton/release-asset-action@master
159+
uses: shogo82148/actions-upload-release-asset@v1
158160
with:
159-
pattern: "${{ github.workspace }}/build/pkgs/librf24*"
160-
github-token: ${{ secrets.GITHUB_TOKEN }}
161+
upload_url: ${{ github.event.release.upload_url }}
162+
asset_path: "${{ github.workspace }}/build/pkgs/librf24*"
161163

162164
- name: clean build environment
163165
working-directory: ${{ github.workspace }}/build
@@ -178,7 +180,7 @@ jobs:
178180
# cross-compiling a python C extension is better done with pypa/cibuildwheel action
179181
- name: Set up Python 3.7
180182
if: ${{ matrix.toolchain.compiler == 'default' }}
181-
uses: actions/setup-python@v1
183+
uses: actions/setup-python@v4
182184
with:
183185
python-version: 3.7
184186

0 commit comments

Comments
 (0)