-
Notifications
You must be signed in to change notification settings - Fork 25
51 lines (42 loc) · 1010 Bytes
/
cli-check.yml
File metadata and controls
51 lines (42 loc) · 1010 Bytes
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: CLI Build
on:
push:
branches:
- main
paths:
- "cli/**"
- ".github/workflows/cli-check.yml"
pull_request:
branches:
- main
paths:
- "cli/**"
- ".github/workflows/cli-check.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build CLI
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Install protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Cache Rust builds
uses: Swatinem/rust-cache@v2
with:
workspaces: |
cli -> target
- name: Build
working-directory: cli
run: cargo build --locked
- name: Test
working-directory: cli
run: cargo test --locked --profile ci-test