mirror of
https://github.com/seemueller-io/hyper-custom-cert.git
synced 2025-09-08 22:46:45 +00:00
update ci
This commit is contained in:
34
.github/workflows/ci.yml
vendored
34
.github/workflows/ci.yml
vendored
@@ -8,28 +8,8 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
name: build-and-test (${{ matrix.name }})
|
name: build-and-test (${{ matrix.name }})
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: crates/hyper-custom-cert
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- name: default (native-tls)
|
|
||||||
features: ""
|
|
||||||
no-default-features: false
|
|
||||||
- name: no-default-features (no TLS)
|
|
||||||
features: ""
|
|
||||||
no-default-features: true
|
|
||||||
- name: rustls
|
|
||||||
features: "rustls"
|
|
||||||
no-default-features: true
|
|
||||||
- name: insecure-dangerous (native-tls)
|
|
||||||
features: "insecure-dangerous"
|
|
||||||
no-default-features: false
|
|
||||||
- name: rustls + insecure-dangerous
|
|
||||||
features: "rustls,insecure-dangerous"
|
|
||||||
no-default-features: true
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -55,21 +35,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Clippy
|
- name: Clippy
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: cargo clippy --all-targets
|
||||||
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 clippy --all-targets $FLAGS -- -D warnings"
|
|
||||||
cargo clippy --all-targets $FLAGS -- -D warnings
|
|
||||||
|
|
||||||
- name: Tests
|
- name: Tests
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: cargo test --all-features
|
||||||
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 $FLAGS -- --nocapture"
|
|
||||||
cargo test $FLAGS -- --nocapture
|
|
||||||
|
|
||||||
- name: Build Docs
|
- name: Build Docs
|
||||||
shell: bash
|
shell: bash
|
||||||
|
32
.github/workflows/release.yml
vendored
32
.github/workflows/release.yml
vendored
@@ -87,23 +87,6 @@ jobs:
|
|||||||
working-directory: crates/hyper-custom-cert
|
working-directory: crates/hyper-custom-cert
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- name: default (native-tls)
|
|
||||||
features: ""
|
|
||||||
no-default-features: false
|
|
||||||
- name: no-default-features (no TLS)
|
|
||||||
features: ""
|
|
||||||
no-default-features: true
|
|
||||||
- name: rustls
|
|
||||||
features: "rustls"
|
|
||||||
no-default-features: true
|
|
||||||
- name: insecure-dangerous (native-tls)
|
|
||||||
features: "insecure-dangerous"
|
|
||||||
no-default-features: false
|
|
||||||
- name: rustls + insecure-dangerous
|
|
||||||
features: "rustls,insecure-dangerous"
|
|
||||||
no-default-features: true
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -129,22 +112,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Clippy
|
- name: Clippy
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: cargo clippy --all-targets
|
||||||
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 clippy --all-targets $FLAGS -- -D warnings"
|
|
||||||
cargo clippy --all-targets $FLAGS -- -D warnings
|
|
||||||
|
|
||||||
- name: Tests
|
- name: Tests
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: cargo test --all-features
|
||||||
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 $FLAGS -- --nocapture"
|
|
||||||
cargo test $FLAGS -- --nocapture
|
|
||||||
|
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
name: Publish to crates.io
|
name: Publish to crates.io
|
||||||
|
Reference in New Issue
Block a user