@@ -59,35 +59,18 @@ jobs:
59
59
- name : Install libsystemd-dev
60
60
run : sudo apt-get -o Acquire::Retries=3 install libsystemd-dev
61
61
62
- - name : Check with no-default-features
62
+ - name : Install cargo-hack
63
63
uses : actions-rs/cargo@v1
64
64
with :
65
- command : check
66
- args : --all --no-default-features
65
+ command : install
66
+ args : cargo-hack
67
67
68
- - name : Check with only bus
68
+ - name : Check with all variants
69
69
uses : actions-rs/cargo@v1
70
70
with :
71
- command : check
72
- args : --all --no-default-features --features bus
71
+ command : hack
72
+ args : --feature-powerset --skip unstable-doc-cfg check --workspace --all-targets
73
73
74
- - name : Check with only journal
75
- uses : actions-rs/cargo@v1
76
- with :
77
- command : check
78
- args : --all --no-default-features --features journal
79
-
80
- - name : Check with only systemd_v245
81
- uses : actions-rs/cargo@v1
82
- with :
83
- command : check
84
- args : --all --no-default-features --features systemd_v245
85
-
86
- - name : Check with all features
87
- uses : actions-rs/cargo@v1
88
- with :
89
- command : check
90
- args : --all --all-features
91
74
test :
92
75
runs-on : ubuntu-20.04
93
76
strategy :
@@ -115,14 +98,36 @@ jobs:
115
98
- name : Install libsystemd-dev
116
99
run : sudo apt-get -o Acquire::Retries=3 install libsystemd-dev
117
100
101
+ - name : Install cargo-hack
102
+ uses : actions-rs/cargo@v1
103
+ with :
104
+ command : install
105
+ args : cargo-hack
106
+
107
+ - name : Build everything
108
+ uses : actions-rs/cargo@v1
109
+ if : ${{matrix.rust != 'nightly' }}
110
+ with :
111
+ command : hack
112
+ args : --feature-powerset --skip unstable-doc-cfg build --all --all-targets
113
+
114
+ - name : Run all tests
115
+ uses : actions-rs/cargo@v1
116
+ if : ${{matrix.rust != 'nightly' }}
117
+ with :
118
+ command : hack
119
+ args : --feature-powerset --skip unstable-doc-cfg test --all
120
+
118
121
- name : Build everything
119
122
uses : actions-rs/cargo@v1
123
+ if : ${{matrix.rust == 'nightly' }}
120
124
with :
121
- command : build
122
- args : --all --all-targets
125
+ command : hack
126
+ args : --feature-powerset build -- all --all-targets
123
127
124
128
- name : Run all tests
125
129
uses : actions-rs/cargo@v1
130
+ if : ${{matrix.rust == 'nightly' }}
126
131
with :
127
- command : test
128
- args : --all
132
+ command : hack
133
+ args : --feature-powerset test -- all
0 commit comments