Repository navigation
64 lines (50 loc) · 1.61 KB
/
Copy pathci.yml
File metadata and controls
64 lines (50 loc) · 1.61 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
name: CI
on:
push:
branches: [ master ]
workflow_dispatch:
pull_request:
branches: [ master ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
# Use the toolchain from rust-toolchain.toml
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Verify installed toolchain and targets
run: |
rustc --version
rustup show
rustup target list --installed
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy -- -D warnings
- name: Run clippy for libkernel (all features, including tests)
run: >
cargo clippy -p libkernel
--target x86_64-unknown-linux-gnu
--all-features --all-targets -- -D warnings
libkernel-features:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
# Use the toolchain from rust-toolchain.toml
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack
- name: Check libkernel for every feature combination
run: >
cargo hack check -p libkernel
--target x86_64-unknown-linux-gnu
--feature-powerset --no-dev-deps --keep-going
- name: Test libkernel for every feature combination
run: >
cargo hack test -p libkernel
--target x86_64-unknown-linux-gnu
--feature-powerset --keep-going