From 76edb28dde98cc18751e81a2a19dcfd2b5c509a9 Mon Sep 17 00:00:00 2001 From: Steffen Butzer Date: Sun, 22 Sep 2024 00:42:43 +0200 Subject: [PATCH] ci: skippable tls 1.3 test on unsupported images --- .github/workflows/ci.yaml | 2 ++ src/test.rs | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index dc2bb01..82d680d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,6 +24,8 @@ jobs: - target: i686-pc-windows-gnu channel: 1.60.0 os: windows-2022 + env: + SCHANNEL_SKIP_TLS_13_TEST: ${{ matrix.os == 'windows-2019' && '1' || '0' }} steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@master diff --git a/src/test.rs b/src/test.rs index 2fe1350..2db0303 100644 --- a/src/test.rs +++ b/src/test.rs @@ -273,6 +273,10 @@ fn verify_callback_success() { #[test] fn tls_13() { + if env::var("SCHANNEL_SKIP_TLS_13_TEST") == Ok("1".to_owned()) { + return + } + let creds = SchannelCred::builder() .enabled_protocols(&[Protocol::Tls12, Protocol::Tls13]) .acquire(Direction::Outbound)