File tree 3 files changed +10
-3
lines changed
metrics-exporter-prometheus/src
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 24
24
- name : Install Rust Stable
25
25
run : rustup default stable
26
26
- name : Install cargo-hack
27
- run : cargo install cargo-hack
27
+ uses : taiki-e/install-action@v2
28
+ with :
29
+ tool : cargo-hack
28
30
- name : Check Feature Matrix
29
- run : cargo hack build --all --all-targets --feature-powerset
31
+ run : cargo hack check --all --all-targets --feature-powerset --release
30
32
test :
31
33
name : Test ${{ matrix.rust_version }}
32
34
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ use hyper::{
29
29
http:: HeaderValue ,
30
30
Method , Request , Uri ,
31
31
} ;
32
+ #[ cfg( feature = "push-gateway" ) ]
32
33
use hyper_tls:: HttpsConnector ;
33
34
34
35
use indexmap:: IndexMap ;
Original file line number Diff line number Diff line change 1
1
[build ]
2
2
command = """
3
3
rustup install nightly --profile minimal && \
4
- cargo doc --no-deps --workspace --exclude=metrics-observer && cp -r target/doc _netlify_out
4
+ PROTOC_ZIP=protoc-3.14.0-linux-x86_64.zip && \
5
+ curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/$PROTOC_ZIP && \
6
+ unzip $PROTOC_ZIP && \
7
+ PATH=$PATH:/$PWD/bin cargo +nightly doc --no-deps --workspace --exclude=metrics-observer && \
8
+ cp -r target/doc _netlify_out
5
9
"""
6
10
environment = { RUSTDOCFLAGS = " --cfg docsrs" }
7
11
publish = " _netlify_out"
You can’t perform that action at this time.
0 commit comments