wip #5040
Workflow file for this run
This file contains hidden or 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@v6 | |
| - uses: taiki-e/install-action@nextest | |
| - 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 | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: generate-lockfile | |
| - name: Cache Dependencies | |
| uses: Swatinem/rust-cache@v2.8.2 | |
| - name: Cache vcpkg | |
| uses: actions/cache@v5 | |
| with: | |
| path: C:\vcpkg\installed\ | |
| key: x86_64-pc-windows-msvc-openssl | |
| - name: Cache cargo registry | |
| uses: actions/cache@v5 | |
| 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@v5 | |
| 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: Cache openssl | |
| uses: actions/cache@v5 | |
| with: | |
| path: C:\vcpkg\installed\x64-windows\ | |
| key: x86_64-openssl | |
| - name: Install OpenSSL | |
| run: | | |
| $env:VCPKG_MANIFEST_MODE = 'OFF' | |
| vcpkg integrate install | |
| vcpkg install --clean-after-build 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 (tokio) | |
| timeout-minutes: 10 | |
| run: | | |
| cargo nextest run --retries=3 --all --no-default-features --no-fail-fast --features="ntex/tokio,ntex/cookie,ntex/url,ntex/compress,ntex/openssl,ntex/rustls,ntex/ws" -- --skip test_timer | |
| - name: Run tests (compio) | |
| timeout-minutes: 10 | |
| run: | | |
| cargo nextest run --retries=3 --all --no-default-features --no-fail-fast --features="ntex/compio,ntex/cookie,ntex/url,ntex/compress,ntex/openssl,ntex/rustls,ntex/ws" -- --skip test_timer | |
| #- name: Run tests (neon) | |
| # timeout-minutes: 10 | |
| # run: | | |
| # cargo nextest run --retries=3 --all --no-default-features --no-fail-fast --features="ntex/cookie,ntex/url,ntex/compress,ntex/openssl,ntex/rustls,ntex/ws" -- --skip test_timer |