-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (40 loc) · 1014 Bytes
/
build.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]
pull_request:
branches: ['*']
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# Test fixtures live in LFS.
lfs: true
- name: Determine toolchain
id: rust-toolchain
run: |
echo "value=$(cat rust-toolchain)" >> "$GITHUB_OUTPUT"
- name: Setup Rust
uses: dtolnay/rust-toolchain@v1
with:
components: rustfmt, clippy, llvm-tools-preview
toolchain: ${{ steps.rust-toolchain.outputs.value }}
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
- name: Install testing tools
uses: taiki-e/install-action@v2
with:
- name: Lint
run: make lint
- name: Build
run: make build
- name: Test
run: make cover
- name: Upload coverage data
uses: codecov/codecov-action@v4
with:
files: lcov.info