-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (50 loc) · 1.83 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Build & Test for Windows
on:
push:
paths-ignore:
- "*.md"
pull_request:
jobs:
build_rs:
name: Build & Tests on Windows
runs-on: windows-latest
permissions:
contents: read
security-events: write
actions: read
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
# When rustup is updated, it tries to replace its binary, which on Windows is somehow locked.
# This can result in the CI failure, see: https://github.com/rust-lang/rustup/issues/3029
- run: |
rustup set auto-self-update disable
rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@v2
- name: Install dependencies
run: |
rustup component add clippy
cargo install clippy-sarif sarif-fmt
- name: Build rorm with tokio-rustls
run: cargo build -p rorm -F tokio-rustls
- name: Build rorm with tokio-native-tls
run: cargo build -p rorm -F tokio-native-tls
- name: Build rorm with async-std-rustls
run: cargo build -p rorm -F async-std-rustls
- name: Build rorm with async-std-native-tls
run: cargo build -p rorm -F async-std-native-tls
- name: Build rorm with actix-rustls
run: cargo build -p rorm -F actix-rustls
- name: Build rorm with actix-native-tls
run: cargo build -p rorm -F actix-native-tls
- name: Run rust-clippy
run: cargo clippy --workspace --message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
continue-on-error: true
- name: Upload clippy analysis results to GitHub
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: rust-clippy-results.sarif
wait-for-processing: true