File tree Expand file tree Collapse file tree 3 files changed +40
-0
lines changed Expand file tree Collapse file tree 3 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 67
67
--target=integration_test/webcrypto_test.dart \
68
68
-d chrome
69
69
- run : flutter pub run test -p vm,chrome # TODO: Enable firefox if it works
70
+ windows :
71
+ name : webcrypto on Windows Chrome / Firefox
72
+ runs-on : windows-latest
73
+ steps :
74
+ - uses : ilammy/setup-nasm@v1
75
+ - uses : actions/checkout@v3
76
+ - uses : subosito/flutter-action@v2
77
+ with :
78
+ channel : ' stable'
79
+ architecture : x64
80
+ - name : Configure Flutter
81
+ run : |
82
+ flutter config --no-analytics
83
+ flutter config --enable-windows-desktop
84
+ - run : flutter pub get
85
+ - run : flutter pub run webcrypto:setup
86
+ - run : flutter test
87
+ - run : flutter test --platform chrome
88
+ - run : flutter test integration_test/webcrypto_test.dart -d windows
89
+ working-directory : ./example
90
+ - uses : nanasess/setup-chromedriver@v2
91
+ - name : Run integration_test with chromedriver
92
+ working-directory : ./example
93
+ shell : bash
94
+ run : |
95
+ ../tool/with-chromedriver.sh flutter drive \
96
+ --driver=test_driver/integration_test.dart \
97
+ --target=integration_test/webcrypto_test.dart \
98
+ -d chrome
99
+ - run : flutter pub run test -p vm,chrome,firefox
70
100
ios :
71
101
name : webcrypto on iOS emulator (iPhone)
72
102
runs-on : macos-latest
Original file line number Diff line number Diff line change @@ -111,6 +111,10 @@ if(MSVC)
111
111
${MSVC_DISABLED_WARNINGS_LIST} )
112
112
set (CMAKE_C_FLAGS "-utf-8 -W4 -WX ${MSVC_DISABLED_WARNINGS_STR} " )
113
113
set (CMAKE_CXX_FLAGS "-utf-8 -W4 -WX ${MSVC_DISABLED_WARNINGS_STR} " )
114
+
115
+ # Hack because Windows compilers will put .dll files in
116
+ # $CMAKE_BINARY_DIR/Debug/ folder.
117
+ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY $<1:${CMAKE_BINARY_DIR} >)
114
118
endif ()
115
119
if (WIN32 )
116
120
# Windows/MSVC option from CMakeLists.txt in BoringSSL
Original file line number Diff line number Diff line change 32
32
PLATFORM=' linux64'
33
33
elif [[ " $OSTYPE " == " darwin" * ]]; then
34
34
PLATFORM=' mac64'
35
+ elif [[ " $OSTYPE " == " cygwin" ]]; then
36
+ PLATFORM=' win32'
37
+ elif [[ " $OSTYPE " == " msys" ]]; then
38
+ PLATFORM=' win32'
39
+ elif [[ " $OSTYPE " == " win32" ]]; then
40
+ PLATFORM=' win32'
35
41
else
36
42
echo " Unsupported OSTYPE: $OSTYPE "
37
43
exit 1
You can’t perform that action at this time.
0 commit comments