@@ -44,23 +44,39 @@ jobs:
44
44
toolchain : ${{ matrix.toolchain }}
45
45
target : ${{ matrix.target }}
46
46
override : true
47
+
48
+ # If glibc, compile and test all
49
+ - uses : actions-rs/cargo@v1
50
+ if : matrix.target == 'x86_64-unknown-linux-gnu'
51
+ with :
52
+ command : build
53
+ toolchain : ${{ matrix.toolchain }}
54
+ args : --target ${{ matrix.target }} --workspace
55
+ - uses : actions-rs/cargo@v1
56
+ if : matrix.target == 'x86_64-unknown-linux-gnu'
57
+ with :
58
+ command : test
59
+ toolchain : ${{ matrix.toolchain }}
60
+ args : --target ${{ matrix.target }} --workspace
61
+
62
+ # If musl, compile and test all excluding kafka
47
63
- uses : actions-rs/cargo@v1
48
- if : matrix.target != 'wasm32 -unknown-unknown '
64
+ if : matrix.target == 'x86_64 -unknown-linux-musl '
49
65
with :
50
66
command : build
51
67
toolchain : ${{ matrix.toolchain }}
52
- args : --target ${{ matrix.target }} --all
68
+ args : --target ${{ matrix.target }} --workspace --exclude cloudevents-sdk-rdkafka
53
69
- uses : actions-rs/cargo@v1
54
- if : matrix.target != 'wasm32 -unknown-unknown '
70
+ if : matrix.target == 'x86_64 -unknown-linux-musl '
55
71
with :
56
72
command : test
57
73
toolchain : ${{ matrix.toolchain }}
58
- args : --target ${{ matrix.target }} --all
74
+ args : --target ${{ matrix.target }} --workspace --exclude cloudevents-sdk-rdkafka
59
75
60
- # If wasm, then we don't need to compile --all
76
+ # If wasm, then we test only the main module and cloudevents-sdk-reqwest
61
77
- uses : actions-rs/cargo@v1
62
78
if : matrix.target == 'wasm32-unknown-unknown'
63
79
with :
64
80
command : build
65
81
toolchain : ${{ matrix.toolchain }}
66
- args : --target wasm32-unknown-unknown
82
+ args : --target wasm32-unknown-unknown --package cloudevents-sdk --package cloudevents-sdk-reqwest
0 commit comments