-
Notifications
You must be signed in to change notification settings - Fork 62
50 lines (42 loc) · 1.02 KB
/
ci.yaml
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
on:
push:
branches: main
pull_request:
merge_group:
jobs:
ci:
name: CI
runs-on: ubuntu-latest
needs: [build]
if: always()
steps:
- name: Done
run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
- nightly
include:
# Minimum supported rust version (MSRV)
# Note this needs to be new enough to build the examples as well as
# the library itself.
- name: MSRV
rust: 1.73.0
name: "build (${{ matrix.name || matrix.rust }})"
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy
- name: rustfmt
run: cargo fmt -- --check
- name: build
run: cargo xtask ci