File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,15 @@ jobs:
31
31
choco install -y .github/workflows/choco_packages.config
32
32
curl -L https://github.com/libusb/libusb/releases/download/v1.0.27/libusb-1.0.27.7z -o libusb.7z
33
33
7z x libusb.7z -olibusb
34
+ ls libusb
34
35
- name : Set LIBUSB_ROOT (Windows)
35
36
if : runner.os == 'Windows'
36
- shell : bash
37
- run : echo "LIBUSB_ROOT=$(pwd)/libusb" >> "$GITHUB_ENV"
37
+ run : |
38
+ "LIBUSB_ROOT=$(pwd)/libusb" >> $env:GITHUB_ENV
39
+ - name : Check LIBUSB_ROOT (Windows)
40
+ if : runner.os == 'Windows'
41
+ run : |
42
+ echo $env:LIBUSB_ROOT
38
43
39
44
- name : Install dependencies (macOS)
40
45
if : runner.os == 'macOS'
71
76
picotool info -a blink.uf2
72
77
picotool info -a hello_world.uf2
73
78
picotool info -a flash_nuke.uf2
79
+
80
+ - name : Test libusb compiled
81
+ if : matrix.libusb == 'libusb'
82
+ run : |
83
+ picotool help load
84
+ picotool help save
85
+ picotool help erase
74
86
75
87
test-examples :
76
88
# Prevent running twice for PRs from same repo
Original file line number Diff line number Diff line change 10
10
#include < algorithm>
11
11
#include " picoboot_connection_cxx.h"
12
12
13
+ #ifdef _WIN32
14
+ #undef min
15
+ #undef max
16
+
17
+ #define _CRT_SECURE_NO_WARNINGS
18
+ #endif
19
+
13
20
using picoboot::connection;
14
21
using picoboot::connection_error;
15
22
using picoboot::command_failure;
You can’t perform that action at this time.
0 commit comments