-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (39 loc) · 1.22 KB
/
ci_windows.yaml
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
name: ci_windows
on:
schedule:
# * is a special character in YAML so you have to quote this string
# The final 1 indicates that we want to run this test on Tuesdays, making
# this a weekly test.
- cron: '30 2 * * 1'
pull_request:
workflow_dispatch:
push:
branches: [main]
jobs:
build:
runs-on: windows-latest
steps:
- name: checkout
uses: actions/checkout@v3
# Run build
- name: Install Rustup using win.rustup.rs
run: |
# Disable the download progress bar which can cause perf issues
$ProgressPreference = "SilentlyContinue"
Invoke-WebRequest https://win.rustup.rs/ -OutFile rustup-init.exe
.\rustup-init.exe -y --default-host=x86_64-pc-windows-msvc --default-toolchain=none
del rustup-init.exe
rustup target add x86_64-pc-windows-msvc
shell: powershell
- name: Build default features
run: cargo build
shell: cmd
- name: Test default features
run: cargo test
shell: cmd
- name: Build single_threaded_async
run: cargo build --features single_threaded_async
shell: cmd
- name: Test single_threaded_async
run: cargo test --features single_threaded_async
shell: cmd