-
Notifications
You must be signed in to change notification settings - Fork 0
103 lines (80 loc) · 2.69 KB
/
Copy pathci.yaml
File metadata and controls
103 lines (80 loc) · 2.69 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: "always"
LLVM_PATH: "${{ github.workspace }}/llvm"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install LLVM Dependencies
run: |
sudo apt update
wget http://security.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.1_amd64.deb
sudo apt install ./libtinfo5_6.3-2ubuntu0.1_amd64.deb
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v2
with:
version: "18.1"
directory: "${{ env.LLVM_PATH }}"
- name: Install rust
run: |
rustup toolchain install stable --profile minimal --no-self-update
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Install cargo-nextest
uses: taiki-e/install-action@nextest
- uses: Swatinem/rust-cache@v2
- name: Test with code coverage
run: |
cargo llvm-cov nextest --all-features --workspace --lcov --profile=ci --output-path lcov.info
env:
LLVM_SYS_181_PREFIX: "${{ env.LLVM_PATH }}"
- name: Upload test results to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: target/nextest/ci/junit.xml
report_type: test_results
fail_ci_if_error: false
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
report_type: coverage
fail_ci_if_error: false
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install LLVM Dependencies
run: |
sudo apt update
wget http://security.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.1_amd64.deb
sudo apt install ./libtinfo5_6.3-2ubuntu0.1_amd64.deb
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v2
with:
version: "18.1"
directory: "${{ env.LLVM_PATH }}"
- name: Install rust
run: |
rustup toolchain install stable --profile minimal --no-self-update
- uses: Swatinem/rust-cache@v2
- name: Run clippy
run: |
cargo clippy --all-features --all-targets --keep-going -- -D warnings
env:
LLVM_SYS_181_PREFIX: "${{ env.LLVM_PATH }}"
spell-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: streetsidesoftware/cspell-action@v8
# spell-checker:ignore libtinfo,Swatinem