Skip to content

Commit abb9e91

Browse files
committed
Run Windows tests on Github Actions
1 parent 5a7c96e commit abb9e91

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

.appveyor.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,25 @@ jobs:
5454
- name: Test
5555
run: cargo test --no-default-features
5656

57+
test-windows:
58+
name: Test on Windows
59+
runs-on: windows-latest
60+
steps:
61+
# The Windows runners have autocrlf enabled by default
62+
# which causes failures for some of rustfmt's line-ending sensitive tests
63+
- name: disable git eol translation
64+
run: git config --global core.autocrlf false
65+
- name: checkout
66+
uses: actions/checkout@v3
67+
- name: Install Rustup using win.rustup.rs
68+
run: |
69+
# Disable the download progress bar which can cause perf issues
70+
$ProgressPreference = "SilentlyContinue"
71+
Invoke-WebRequest https://win.rustup.rs/ -OutFile rustup-init.exe
72+
.\rustup-init.exe -y --default-host=x86_64-pc-windows-msvc --default-toolchain=none
73+
del rustup-init.exe
74+
rustup target add x86_64-pc-windows-msvc
75+
shell: powershell
76+
- name: Build and Test
77+
shell: cmd
78+
run: ci\build_and_test.bat

0 commit comments

Comments
 (0)