@@ -53,36 +53,20 @@ jobs:
53
53
54
54
# If glibc, compile and test all
55
55
- uses : actions-rs/cargo@v1
56
- name : " Build"
56
+ name : " Build glibc "
57
57
if : matrix.target == 'x86_64-unknown-linux-gnu'
58
58
with :
59
59
command : build
60
60
toolchain : ${{ matrix.toolchain }}
61
61
args : --target ${{ matrix.target }} --all-features
62
62
- uses : actions-rs/cargo@v1
63
- name : " Test"
63
+ name : " Test glibc "
64
64
if : matrix.target == 'x86_64-unknown-linux-gnu'
65
65
with :
66
66
command : test
67
67
toolchain : ${{ matrix.toolchain }}
68
68
args : --target ${{ matrix.target }} --all-features
69
69
70
- # If glibc, compile and test only the core module with no_std
71
- - uses : actions-rs/cargo@v1
72
- name : " Build"
73
- if : matrix.target == 'x86_64-unknown-linux-gnu'
74
- with :
75
- command : build
76
- toolchain : ${{ matrix.toolchain }}
77
- args : --target ${{ matrix.target }} --package cloudevents-sdk --workspace --no-default-features
78
- - uses : actions-rs/cargo@v1
79
- name : " Test"
80
- if : matrix.target == 'x86_64-unknown-linux-gnu'
81
- with :
82
- command : test
83
- toolchain : ${{ matrix.toolchain }}
84
- args : --target ${{ matrix.target }} --package cloudevents-sdk --workspace --no-default-features
85
-
86
70
# If musl, compile and test all
87
71
- uses : actions-rs/cargo@v1
88
72
name : " Build"
@@ -145,3 +129,31 @@ jobs:
145
129
command : build
146
130
toolchain : ${{ matrix.toolchain }}
147
131
args : --target ${{ matrix.target }} --manifest-path ./example-projects/warp-example/Cargo.toml
132
+
133
+ check_no_std :
134
+ name : Check no_std
135
+ runs-on : ubuntu-latest
136
+ steps :
137
+ - uses : actions/checkout@v1
138
+ - uses : actions-rs/toolchain@v1
139
+ with :
140
+ toolchain : stable
141
+ override : true
142
+ # Caching stuff
143
+ - uses : actions/cache@v2
144
+ with :
145
+ path : |
146
+ ~/.cargo/bin/
147
+ ~/.cargo/registry/index/
148
+ ~/.cargo/registry/cache/
149
+ ~/.cargo/git/db/
150
+ key : ${{ runner.os }}-cargo-no-std-deps-${{ hashFiles('**/Cargo.toml') }}
151
+ - uses : actions/cache@v2
152
+ with :
153
+ path : |
154
+ target/
155
+ key : ${{ runner.os }}-cargo-no-std-build-${{ hashFiles('**/Cargo.toml') }}
156
+ - name : Download cargo-nono
157
+ run : curl -LSfs https://japaric.github.io/trust/install.sh | sh -s -- --git hobofan/cargo-nono
158
+ - name : Run check
159
+ run : ./cargo-nono check
0 commit comments