-
Notifications
You must be signed in to change notification settings - Fork 33
57 lines (48 loc) · 1.29 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
name: Windows
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
include:
- os: windows-latest
TOOLCHAIN: stable-i686-pc-windows-msvc
TARGET: i686-pc-windows-msvc
steps:
- uses: actions/checkout@v2
- name: Cache Cargo
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{matrix.TOOLCHAIN}}
target: ${{matrix.TARGET}}
override: true
- name: Build
run: cargo build --target=${{matrix.TARGET}} --release --verbose
- uses: actions/upload-artifact@v2
if: matrix.os == 'windows-latest'
with:
name: debug-server-windows
path: |
target/i686-pc-windows-msvc/release/debug_server.dll
target/i686-pc-windows-msvc/release/debug_server.pdb
- name: Run tests
run: cargo test --target=${{matrix.TARGET}} --verbose