-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (48 loc) · 1.39 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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
check:
name: Checking ${{ matrix.build_target }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
build_target: [linux, macos, windows]
include:
- build_target: linux
os: ubuntu-latest
artifact_suffix: linux-x86_64
target: x86_64-unknown-linux-gnu
features: ''
- build_target: macos
os: macos-latest
artifact_suffix: macos-x86_64
target: x86_64-apple-darwin
features: ''
- build_target: windows
os: windows-latest
artifact_suffix: windows-x86_64
target: x86_64-pc-windows-msvc
features: ''
steps:
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
target: ${{ matrix.target }}
- name: Checkout src
uses: actions/checkout@v4
- name: Running cargo check
run: cargo check --locked --release --target ${{ matrix.target }} ${{ matrix.features }}
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Rustfmt check
uses: actions-rust-lang/rustfmt@v1