Tune compio integration (#412) #2683
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI (Windows) | |
on: [push, pull_request] | |
env: | |
VCPKGRS_DYNAMIC: 1 | |
jobs: | |
build_and_test: | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- stable | |
- nightly | |
name: ${{ matrix.version }} - x86_64-pc-windows-msvc | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install ${{ matrix.version }} | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: ${{ matrix.version }}-x86_64-pc-windows-msvc | |
- name: Generate Cargo.lock | |
run: cargo generate-lockfile | |
- name: Cache vcpkg | |
uses: actions/cache@v4 | |
with: | |
path: C:\vcpkg\installed\x64-windows\ | |
key: x86_64-pc-windows-msvc-openssl | |
- name: Cache cargo registry | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cargo/registry | |
key: ${{ matrix.version }}-x86_64-pc-windows-msvc-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }} | |
- name: Cache cargo index | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cargo/git | |
key: ${{ matrix.version }}-x86_64-pc-windows-msvc-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }} | |
- name: Install cmake | |
uses: lukka/get-cmake@latest | |
- name: Install nasm | |
uses: ilammy/setup-nasm@v1 | |
- name: Install OpenSSL | |
run: | | |
vcpkg integrate install | |
vcpkg install openssl:x64-windows | |
Copy-Item C:\vcpkg\installed\x64-windows\bin\libcrypto-3-x64.dll C:\vcpkg\installed\x64-windows\bin\libcrypto.dll | |
Copy-Item C:\vcpkg\installed\x64-windows\bin\libssl-3-x64.dll C:\vcpkg\installed\x64-windows\bin\libssl.dll | |
Get-ChildItem C:\vcpkg\installed\x64-windows\bin | |
Get-ChildItem C:\vcpkg\installed\x64-windows\lib | |
- name: Run tests | |
run: | | |
cargo test --lib --all-features --no-fail-fast -- --nocapture --skip test_panic_in_worker --skip test_connection_force_close --skip test_connection_server_close --skip test_freeze --skip test_simple --skip test_test_methods --skip test_connection_wait_queue_force_close --skip test_params --skip test_body --skip test_form --skip test_json --skip test_connection_reuse --skip test_connection_wait_queue --skip test_no_decompress --skip test_connection_reuse_h2 --skip test_h2_tcp --skip test_timer |