Skip to content

Commit b1846a7

Browse files
committed
move windows build to github actions
1 parent cb64ca9 commit b1846a7

File tree

2 files changed

+33
-12
lines changed

2 files changed

+33
-12
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
branches:
99
- master
1010

11+
env:
12+
RUSTFLAGS: -Dwarnings
13+
RUST_BACKTRACE: 1
14+
1115
jobs:
1216
rustfmt:
1317
name: rustfmt
@@ -16,3 +20,32 @@ jobs:
1620
- uses: actions/checkout@v2
1721
- uses: sfackler/actions/rustup@master
1822
- uses: sfackler/actions/rustfmt@master
23+
24+
windows:
25+
name: windows
26+
runs-on: windows-latest
27+
steps:
28+
- uses: actions/checkout@v2
29+
- uses: sfackler/actions/rustup@master
30+
with:
31+
version: 1.37.0
32+
- run: echo "::set-output name=version::$(rustc --version)"
33+
id: rust-version
34+
- uses: actions/cache@v1
35+
with:
36+
path: ~/.cargo/registry/index
37+
key: index-${{ runner.os }}-${{ github.run_number }}
38+
restore-keys: |
39+
index-${{ runner.os }}-
40+
- run: cargo generate-lockfile
41+
- uses: actions/cache@v1
42+
with:
43+
path: ~/.cargo/registry/cache
44+
key: registry-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
45+
- run: cargo fetch
46+
- uses: actions/cache@v1
47+
with:
48+
path: target
49+
key: target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
50+
- run: cargo test
51+
- run: cargo test --features alpn

appveyor.yml

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

0 commit comments

Comments
 (0)