File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
build :
10
10
name : Build and Test
11
- runs-on : ubuntu-latest
11
+ runs-on : ${{ matrix.os }}
12
12
strategy :
13
13
matrix :
14
14
os :
Original file line number Diff line number Diff line change @@ -101,13 +101,6 @@ mod tests {
101
101
102
102
static BUILD : Once = Once :: new ( ) ;
103
103
104
- #[ cfg( target_os = "linux" ) ]
105
- const EXTENSION : & str = "so" ;
106
- #[ cfg( target_os = "macos" ) ]
107
- const EXTENSION : & str = "dylib" ;
108
- #[ cfg( target_os = "windows" ) ]
109
- const EXTENSION : & str = "dll" ;
110
-
111
104
fn setup ( ) {
112
105
BUILD . call_once ( || {
113
106
assert_eq ! (
@@ -128,7 +121,7 @@ mod tests {
128
121
Command :: new ( "php" )
129
122
. arg ( format ! (
130
123
"-dextension=../target/debug/libtests.{}" ,
131
- EXTENSION
124
+ std :: env :: consts :: DLL_EXTENSION
132
125
) )
133
126
. arg ( format ! ( "integration/{}" , file) )
134
127
. output ( )
You can’t perform that action at this time.
0 commit comments