Skip to content

Commit fa8b961

Browse files
authored
Upgrade checkout and file-existence-action actions (#494)
The old versions are deprecated due to usage of Node.js 12.
1 parent c1b78dd commit fa8b961

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

.github/workflows/builds.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: macos-latest
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1616
- name: Install build tools
1717
run: brew install autoconf automake libtool
1818
- name: Configure Automake
@@ -34,7 +34,7 @@ jobs:
3434
runs-on: macos-latest
3535

3636
steps:
37-
- uses: actions/checkout@v2
37+
- uses: actions/checkout@v3
3838
with:
3939
path: hidapisrc
4040
- name: Install dependencies
@@ -55,7 +55,7 @@ jobs:
5555
working-directory: build/framework
5656
run: make install
5757
- name: Check artifacts
58-
uses: andstor/file-existence-action@v1
58+
uses: andstor/file-existence-action@v2
5959
with:
6060
files: "install/shared/lib/libhidapi.dylib, \
6161
install/shared/include/hidapi/hidapi.h, \
@@ -66,7 +66,7 @@ jobs:
6666
install/framework/lib/hidapi.framework/hidapi, \
6767
install/framework/lib/hidapi.framework/Headers/hidapi.h, \
6868
install/framework/lib/hidapi.framework/Headers/hidapi_darwin.h"
69-
allow_failure: true
69+
fail: true
7070
- name: Check CMake Export Package Shared
7171
run: |
7272
cmake \
@@ -99,7 +99,7 @@ jobs:
9999
runs-on: ubuntu-latest
100100

101101
steps:
102-
- uses: actions/checkout@v2
102+
- uses: actions/checkout@v3
103103
with:
104104
path: hidapisrc
105105
- name: Install dependencies
@@ -119,7 +119,7 @@ jobs:
119119
working-directory: build/static
120120
run: make install
121121
- name: Check artifacts
122-
uses: andstor/file-existence-action@v1
122+
uses: andstor/file-existence-action@v2
123123
with:
124124
files: "install/shared/lib/libhidapi-libusb.so, \
125125
install/shared/lib/libhidapi-hidraw.so, \
@@ -129,7 +129,7 @@ jobs:
129129
install/static/lib/libhidapi-hidraw.a, \
130130
install/static/include/hidapi/hidapi.h, \
131131
install/static/include/hidapi/hidapi_libusb.h"
132-
allow_failure: true
132+
fail: true
133133
- name: Check CMake Export Package Shared
134134
run: |
135135
cmake \
@@ -162,7 +162,7 @@ jobs:
162162
runs-on: windows-latest
163163

164164
steps:
165-
- uses: actions/checkout@v2
165+
- uses: actions/checkout@v3
166166
with:
167167
path: hidapisrc
168168
- name: Install dependencies
@@ -178,13 +178,13 @@ jobs:
178178
working-directory: build/msvc
179179
run: cmake --build . --target install
180180
- name: Check artifacts MSVC
181-
uses: andstor/file-existence-action@v1
181+
uses: andstor/file-existence-action@v2
182182
with:
183183
files: "install/msvc/lib/hidapi.lib, \
184184
install/msvc/bin/hidapi.dll, \
185185
install/msvc/include/hidapi/hidapi.h, \
186186
install/msvc/include/hidapi/hidapi_winapi.h"
187-
allow_failure: true
187+
fail: true
188188
- name: Check CMake Export Package
189189
shell: cmd
190190
run: |
@@ -209,13 +209,13 @@ jobs:
209209
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
210210
nmake install
211211
- name: Check artifacts NMake
212-
uses: andstor/file-existence-action@v1
212+
uses: andstor/file-existence-action@v2
213213
with:
214214
files: "install/nmake/lib/hidapi.lib, \
215215
install/nmake/bin/hidapi.dll, \
216216
install/nmake/include/hidapi/hidapi.h, \
217217
install/nmake/include/hidapi/hidapi_winapi.h"
218-
allow_failure: true
218+
fail: true
219219
- name: Check CMake Export Package NMake
220220
shell: cmd
221221
run: |
@@ -238,13 +238,13 @@ jobs:
238238
working-directory: build\mingw
239239
run: cmake --build . --target install
240240
- name: Check artifacts MinGW
241-
uses: andstor/file-existence-action@v1
241+
uses: andstor/file-existence-action@v2
242242
with:
243243
files: "install/mingw/lib/libhidapi.dll.a, \
244244
install/mingw/bin/libhidapi.dll, \
245245
install/mingw/include/hidapi/hidapi.h, \
246246
install/mingw/include/hidapi/hidapi_winapi.h"
247-
allow_failure: true
247+
fail: true
248248
- name: Check CMake Export Package MinGW
249249
shell: cmd
250250
run: |
@@ -271,22 +271,22 @@ jobs:
271271
runs-on: windows-latest
272272

273273
steps:
274-
- uses: actions/checkout@v2
274+
- uses: actions/checkout@v3
275275
- uses: microsoft/setup-msbuild@v1.1
276276
- name: MSBuild x86
277277
run: msbuild windows\hidapi.sln /p:Configuration=Release /p:Platform=Win32
278278
- name: Check artifacts x86
279-
uses: andstor/file-existence-action@v1
279+
uses: andstor/file-existence-action@v2
280280
with:
281281
files: "windows/Release/hidapi.dll, windows/Release/hidapi.lib, windows/Release/hidapi.pdb"
282-
allow_failure: true
282+
fail: true
283283
- name: MSBuild x64
284284
run: msbuild windows\hidapi.sln /p:Configuration=Release /p:Platform=x64
285285
- name: Check artifacts x64
286-
uses: andstor/file-existence-action@v1
286+
uses: andstor/file-existence-action@v2
287287
with:
288288
files: "windows/x64/Release/hidapi.dll, windows/x64/Release/hidapi.lib, windows/x64/Release/hidapi.pdb"
289-
allow_failure: true
289+
fail: true
290290
- name: Gather artifacts
291291
run: |
292292
md artifacts

0 commit comments

Comments
 (0)