|
| 1 | +name: CI (Windows) |
| 2 | + |
| 3 | +on: [push, pull_request] |
| 4 | + |
| 5 | +env: |
| 6 | + VCPKGRS_DYNAMIC: 1 |
| 7 | + |
| 8 | +jobs: |
| 9 | + build_and_test: |
| 10 | + strategy: |
| 11 | + fail-fast: false |
| 12 | + matrix: |
| 13 | + version: |
| 14 | + - stable |
| 15 | + - nightly |
| 16 | + target: |
| 17 | + - x86_64-pc-windows-msvc |
| 18 | + - i686-pc-windows-msvc |
| 19 | + |
| 20 | + name: ${{ matrix.version }} - ${{ matrix.target }} |
| 21 | + runs-on: windows-latest |
| 22 | + |
| 23 | + steps: |
| 24 | + - uses: actions/checkout@master |
| 25 | + |
| 26 | + - name: Install ${{ matrix.version }} |
| 27 | + uses: actions-rs/toolchain@v1 |
| 28 | + with: |
| 29 | + toolchain: ${{ matrix.version }}-${{ matrix.target }} |
| 30 | + profile: minimal |
| 31 | + override: true |
| 32 | + |
| 33 | + - name: Install OpenSSL (x64) |
| 34 | + if: matrix.target == 'x86_64-pc-windows-msvc' |
| 35 | + run: | |
| 36 | + vcpkg integrate install |
| 37 | + vcpkg install openssl:x64-windows |
| 38 | + Get-ChildItem C:\vcpkg\installed\x64-windows\bin |
| 39 | + Get-ChildItem C:\vcpkg\installed\x64-windows\lib |
| 40 | + Copy-Item C:\vcpkg\installed\x64-windows\bin\libcrypto-1_1-x64.dll C:\vcpkg\installed\x64-windows\bin\libcrypto.dll |
| 41 | + Copy-Item C:\vcpkg\installed\x64-windows\bin\libssl-1_1-x64.dll C:\vcpkg\installed\x64-windows\bin\libssl.dll |
| 42 | +
|
| 43 | + - name: Install OpenSSL (x86) |
| 44 | + if: matrix.target == 'i686-pc-windows-msvc' |
| 45 | + run: | |
| 46 | + vcpkg integrate install |
| 47 | + vcpkg install openssl:x86-windows |
| 48 | + Get-ChildItem C:\vcpkg\installed\x86-windows\bin |
| 49 | + Get-ChildItem C:\vcpkg\installed\x86-windows\lib |
| 50 | + Copy-Item C:\vcpkg\installed\x86-windows\bin\libcrypto-1_1.dll C:\vcpkg\installed\x86-windows\bin\libcrypto.dll |
| 51 | + Copy-Item C:\vcpkg\installed\x86-windows\bin\libssl-1_1.dll C:\vcpkg\installed\x86-windows\bin\libssl.dll |
| 52 | +
|
| 53 | + - name: check build |
| 54 | + uses: actions-rs/cargo@v1 |
| 55 | + with: |
| 56 | + command: check |
| 57 | + args: --all --bins --examples --tests |
| 58 | + |
| 59 | + - name: tests |
| 60 | + uses: actions-rs/cargo@v1 |
| 61 | + with: |
| 62 | + command: test |
| 63 | + args: --all --all-features --no-fail-fast -- --nocapture |
0 commit comments