-
-
Notifications
You must be signed in to change notification settings - Fork 208
45 lines (38 loc) · 1.13 KB
/
windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: ci-windows
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- main
jobs:
test:
strategy:
fail-fast: false
matrix:
version:
- stable
# - nightly
target:
- x86_64-pc-windows-msvc
# - x86_64-pc-windows-gnu
# - i686-pc-windows-msvc
name: Check ${{ matrix.version }} - ${{ matrix.target }}
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.version }}
components: rustfmt, clippy
- name: Install openssl
run: |
echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append
vcpkg install openssl:x64-windows-static-md
- name: check build
run: cargo check --all --bins --examples --tests
- name: check release build
run: cargo check --all --bins --examples --tests --release
- name: Cargo test
timeout-minutes: 40
run: cargo test --all --all-features --no-fail-fast -- --nocapture