-
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (52 loc) · 1.38 KB
/
ci.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
name: CI
on:
pull_request:
push:
branches:
- master
tags:
- "v*.*.*"
jobs:
style:
name: Check Style
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt
- name: cargo fmt -- --check
run: cargo fmt --all -- --check
build:
name: Build
runs-on: windows-latest
strategy:
matrix:
include:
- target: i686-pc-windows-msvc
suffix: x86
- target: x86_64-pc-windows-msvc
suffix: x64
- target: aarch64-pc-windows-msvc
suffix: arm64
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
target: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
- name: Build target
run: cargo build --release --target ${{ matrix.target }}
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: rd_pipe-${{ matrix.suffix }}
path: |
./target/${{ matrix.target }}/release/*.dll*
./target/${{ matrix.target }}/release/*.pdb