@@ -53,36 +53,20 @@ jobs:
5353
5454 # If glibc, compile and test all
5555 - uses : actions-rs/cargo@v1
56- name : " Build"
56+ name : " Build glibc "
5757 if : matrix.target == 'x86_64-unknown-linux-gnu'
5858 with :
5959 command : build
6060 toolchain : ${{ matrix.toolchain }}
6161 args : --target ${{ matrix.target }} --all-features
6262 - uses : actions-rs/cargo@v1
63- name : " Test"
63+ name : " Test glibc "
6464 if : matrix.target == 'x86_64-unknown-linux-gnu'
6565 with :
6666 command : test
6767 toolchain : ${{ matrix.toolchain }}
6868 args : --target ${{ matrix.target }} --all-features
6969
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-
8670 # If musl, compile and test all
8771 - uses : actions-rs/cargo@v1
8872 name : " Build"
@@ -145,3 +129,31 @@ jobs:
145129 command : build
146130 toolchain : ${{ matrix.toolchain }}
147131 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