Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI #428

Merged
merged 2 commits into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ jobs:
- name: Install Rust Stable
run: rustup default stable
- name: Install cargo-hack
run: cargo install cargo-hack
uses: taiki-e/install-action@v2
with:
tool: cargo-hack
- name: Check Feature Matrix
run: cargo hack build --all --all-targets --feature-powerset
run: cargo hack check --all --all-targets --feature-powerset --release
test:
name: Test ${{ matrix.rust_version }}
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions metrics-exporter-prometheus/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ use hyper::{
http::HeaderValue,
Method, Request, Uri,
};
#[cfg(feature = "push-gateway")]
use hyper_tls::HttpsConnector;

use indexmap::IndexMap;
Expand Down
6 changes: 5 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
[build]
command = """
rustup install nightly --profile minimal && \
cargo doc --no-deps --workspace --exclude=metrics-observer && cp -r target/doc _netlify_out
PROTOC_ZIP=protoc-3.14.0-linux-x86_64.zip && \
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/$PROTOC_ZIP && \
unzip $PROTOC_ZIP && \
PATH=$PATH:/$PWD/bin cargo +nightly doc --no-deps --workspace --exclude=metrics-observer && \
cp -r target/doc _netlify_out
"""
environment = { RUSTDOCFLAGS= "--cfg docsrs" }
publish = "_netlify_out"
Expand Down