-
-
Notifications
You must be signed in to change notification settings - Fork 9
64 lines (64 loc) · 1.76 KB
/
check.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
permissions:
contents: read
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch: {}
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name || github.run_id }}
cancel-in-progress: true
name: check & test
jobs:
check:
runs-on: windows-latest
name: ${{matrix.feature}} / ${{ matrix.compiler }}
strategy:
fail-fast: false
matrix:
compiler: [msvc, gnu]
feature: [vendored, static]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install stable
uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-pc-windows-${{ matrix.compiler }}
- name: cargo check
run: cargo check --target x86_64-pc-windows-${{ matrix.compiler }} --features ${{ matrix.feature }}
- name: cargo test
run: cargo test --target x86_64-pc-windows-${{ matrix.compiler }} --features ${{ matrix.feature }}
doc:
runs-on: windows-latest
name: docs / stable
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install stable
uses: dtolnay/rust-toolchain@stable
- name: cargo doc
run: cargo doc --no-deps --all-features
env:
DOCS_RS: true
RUSTDOCFLAGS: --cfg docsrs
msrv:
runs-on: windows-latest
name: msrv / ${{ matrix.msrv }}
strategy:
fail-fast: false
matrix:
msrv: ["1.74"]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install stable
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.msrv }}
- name: cargo +${{ matrix.msrv }} check
run: cargo check --all-features