-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (40 loc) · 1.12 KB
/
test.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
name: CI
on:
push:
branches: [main]
paths-ignore: ["**.md"]
pull_request:
paths-ignore: ["**.md"]
env:
CARGO_TERM_COLOR: always
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: git
PROTOC_VERSION: 3.23.4
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Add problem matchers
uses: r7kamura/rust-problem-matchers@v1
- name: Install Rust
run: rustup toolchain install stable --profile minimal --no-self-update
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Install Cargo Make
uses: davidB/rust-cargo-make@v1
- name: Install protoc
uses: taiki-e/install-action@v2
with:
tool: protoc@${{ env.PROTOC_VERSION }}
- name: Format
run: cargo make fmt-ci
- name: Lint
run: cargo make lint-ci
- name: Build
run: cargo build --all --release --all-features