mirror of
https://github.com/seemueller-io/hyper-custom-cert.git
synced 2025-09-08 22:46:45 +00:00
Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
411115316b | ||
![]() |
cfbf312e1d | ||
![]() |
c3e38d45b8 | ||
![]() |
c3b552468b | ||
![]() |
b96141857e | ||
![]() |
37fa59a88a | ||
![]() |
bd5a84fe95 | ||
![]() |
3646a37547 |
45
.github/workflows/release.yml
vendored
45
.github/workflows/release.yml
vendored
@@ -12,6 +12,28 @@ jobs:
|
|||||||
docs:
|
docs:
|
||||||
name: Build and validate documentation
|
name: Build and validate documentation
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: crates/hyper-custom-cert
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- name: default-features
|
||||||
|
features: ""
|
||||||
|
no-default-features: false
|
||||||
|
- name: no-default-features
|
||||||
|
features: ""
|
||||||
|
no-default-features: true
|
||||||
|
- name: rustls
|
||||||
|
features: "rustls"
|
||||||
|
no-default-features: true
|
||||||
|
- name: insecure-dangerous
|
||||||
|
features: "insecure-dangerous"
|
||||||
|
no-default-features: false
|
||||||
|
- name: all-features
|
||||||
|
features: "rustls,insecure-dangerous"
|
||||||
|
no-default-features: true
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -31,11 +53,30 @@ jobs:
|
|||||||
|
|
||||||
- name: Build documentation
|
- name: Build documentation
|
||||||
shell: bash
|
shell: bash
|
||||||
run: cargo doc -p hyper-custom-cert --no-deps
|
run: |
|
||||||
|
FLAGS=""
|
||||||
|
if [ "${{ matrix.no-default-features }}" = "true" ]; then FLAGS="$FLAGS --no-default-features"; fi
|
||||||
|
if [ -n "${{ matrix.features }}" ]; then FLAGS="$FLAGS --features ${{ matrix.features }}"; fi
|
||||||
|
echo "Running: cargo doc $FLAGS --no-deps"
|
||||||
|
cargo doc $FLAGS --no-deps
|
||||||
|
|
||||||
|
- name: Check documentation warnings
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
FLAGS=""
|
||||||
|
if [ "${{ matrix.no-default-features }}" = "true" ]; then FLAGS="$FLAGS --no-default-features"; fi
|
||||||
|
if [ -n "${{ matrix.features }}" ]; then FLAGS="$FLAGS --features ${{ matrix.features }}"; fi
|
||||||
|
echo "Running: cargo doc $FLAGS --no-deps"
|
||||||
|
RUSTDOCFLAGS="-D warnings" cargo doc $FLAGS --no-deps
|
||||||
|
|
||||||
- name: Test documentation examples
|
- name: Test documentation examples
|
||||||
shell: bash
|
shell: bash
|
||||||
run: cargo test --doc
|
run: |
|
||||||
|
FLAGS=""
|
||||||
|
if [ "${{ matrix.no-default-features }}" = "true" ]; then FLAGS="$FLAGS --no-default-features"; fi
|
||||||
|
if [ -n "${{ matrix.features }}" ]; then FLAGS="$FLAGS --features ${{ matrix.features }}"; fi
|
||||||
|
echo "Running: cargo test --doc $FLAGS"
|
||||||
|
cargo test --doc $FLAGS
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: Test before release
|
name: Test before release
|
||||||
|
Reference in New Issue
Block a user