Skip to content

Commit 6d2e8a9

Browse files
committed
Update workflow actions
1 parent 8734a57 commit 6d2e8a9

2 files changed

Lines changed: 28 additions & 28 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
pull_request:
66
release:
7-
types: [ published ]
7+
types: [published]
88

99
env:
1010
BUILD_TYPE: Debug
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121

2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v6
2424
with:
2525
submodules: true
2626

@@ -60,21 +60,21 @@ jobs:
6060

6161
- name: Upload test logs
6262
if: ${{ always() }}
63-
uses: actions/upload-artifact@v3
63+
uses: actions/upload-artifact@v6
6464
with:
6565
name: testing-shl-${{ matrix.build_single_header }}
6666
path: ${{github.workspace}}/build/Testing
6767

6868
- name: Upload coverage
6969
if: ${{ matrix.build_single_header == 'OFF' }}
70-
uses: actions/upload-artifact@v3
70+
uses: actions/upload-artifact@v6
7171
with:
7272
name: coverage
7373
path: ${{github.workspace}}/build/coverage_xml.xml
7474

7575
- name: Upload generated header
7676
if: ${{ matrix.build_single_header == 'ON' }}
77-
uses: actions/upload-artifact@v3
77+
uses: actions/upload-artifact@v6
7878
with:
7979
name: single-header
8080
path: ${{github.workspace}}/lib/shl/embedded_cli.h
@@ -86,23 +86,23 @@ jobs:
8686
files: ${{ github.workspace }}/build/coverage_xml.xml
8787

8888
build-arduino-example:
89-
runs-on: ubuntu-latest
89+
runs-on: ubuntu-latest
9090

91-
steps:
92-
- uses: actions/checkout@v3
91+
steps:
92+
- uses: actions/checkout@v6
9393

94-
- name: Generate single header lib
95-
working-directory: ${{github.workspace}}/lib
96-
run: python3 build-shl.py
94+
- name: Generate single header lib
95+
working-directory: ${{github.workspace}}/lib
96+
run: python3 build-shl.py
9797

98-
- name: Copy single header file to sketch dir
99-
run: cp ${{github.workspace}}/lib/shl/embedded_cli.h ${{github.workspace}}/examples/arduino-cli/embedded_cli.h
98+
- name: Copy single header file to sketch dir
99+
run: cp ${{github.workspace}}/lib/shl/embedded_cli.h ${{github.workspace}}/examples/arduino-cli/embedded_cli.h
100100

101-
- name: Compile arduino sketch
102-
uses: arduino/compile-sketches@v1
103-
with:
104-
sketch-paths: |
105-
- examples/arduino-cli
101+
- name: Compile arduino sketch
102+
uses: arduino/compile-sketches@v1
103+
with:
104+
sketch-paths: |
105+
- examples/arduino-cli
106106
107107
build-win:
108108
strategy:
@@ -115,7 +115,7 @@ jobs:
115115
runs-on: windows-2019
116116

117117
steps:
118-
- uses: actions/checkout@v3
118+
- uses: actions/checkout@v6
119119
with:
120120
submodules: true
121121

@@ -136,13 +136,13 @@ jobs:
136136

137137
- name: Upload test logs
138138
if: ${{ always() }}
139-
uses: actions/upload-artifact@v3
139+
uses: actions/upload-artifact@v6
140140
with:
141141
name: testing-win-${{ matrix.arch }}
142142
path: ${{github.workspace}}/build/Testing
143143

144144
- name: Upload windows examples
145-
uses: actions/upload-artifact@v3
145+
uses: actions/upload-artifact@v6
146146
with:
147147
name: windows-example-${{ matrix.arch }}
148148
path: ${{github.workspace}}/build/examples/win32-example/Release/embedded_cli_win32.exe
@@ -151,7 +151,7 @@ jobs:
151151
runs-on: macos-12
152152

153153
steps:
154-
- uses: actions/checkout@v3
154+
- uses: actions/checkout@v6
155155
with:
156156
submodules: true
157157

@@ -172,17 +172,17 @@ jobs:
172172

173173
- name: Upload test logs
174174
if: ${{ always() }}
175-
uses: actions/upload-artifact@v3
175+
uses: actions/upload-artifact@v6
176176
with:
177177
name: testing-mac
178178
path: ${{github.workspace}}/build/Testing
179179

180180
add-release-assets:
181181
runs-on: ubuntu-latest
182182
if: github.event_name == 'release'
183-
needs: [ build ]
183+
needs: [build]
184184
steps:
185-
- uses: actions/download-artifact@v2
185+
- uses: actions/download-artifact@v7
186186
with:
187187
path: artifacts
188188

.github/workflows/release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Release
22
on:
33
push:
44
tags:
5-
- '*'
5+
- "*"
66

77
jobs:
88
create-release:
@@ -14,9 +14,9 @@ jobs:
1414
id: version
1515

1616
- name: Release
17-
uses: softprops/action-gh-release@v1
17+
uses: softprops/action-gh-release@v2
1818
with:
1919
token: ${{ secrets.RELEASE_ACCESS_TOKEN }}
2020
name: embedded-cli ${{ steps.version.outputs.version }}
2121
draft: false
22-
prerelease: true
22+
prerelease: true

0 commit comments

Comments
 (0)