-
Notifications
You must be signed in to change notification settings - Fork 1
83 lines (79 loc) · 2.11 KB
/
Copy pathlinux-basic.yml
File metadata and controls
83 lines (79 loc) · 2.11 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
name: Linux-Basic
permissions: { }
on:
push:
paths-ignore:
- 'ansible/**'
- 'doc/**'
- 'sphinx/**'
- 'scripts/**'
branches:
- 'main'
- 'lts/**'
pull_request:
paths-ignore:
- 'ansible/**'
- 'doc/**'
- 'sphinx/**'
- 'scripts/**'
branches:
- 'main'
- 'lts/**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build
runs-on: ubuntu-26.04
strategy:
matrix:
rust:
- "1.91"
- stable
- beta
- nightly
steps:
- name: Checkout sources
uses: actions/checkout@v7
with:
submodules: true
- name: Install ${{ matrix.rust }} toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install capnproto libjemalloc-dev libmimalloc-dev libc-ares-dev libssl-dev liblua5.4-dev
sudo apt-get install libbpf-dev
- name: Cargo clean
run: cargo clean
- name: Cargo build
run: cargo build --features jemalloc,ebpf,lua54
- name: Cargo test
run: cargo test --workspace --features jemalloc,lua54
clippy:
name: Clippy
runs-on: ubuntu-26.04
steps:
- name: Checkout sources
uses: actions/checkout@v7
with:
submodules: true
- name: Install stable toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
components: clippy
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install capnproto libjemalloc-dev libmimalloc-dev libc-ares-dev libssl-dev liblua5.4-dev
sudo apt-get install libbpf-dev
- name: Cargo clean
run: cargo clean
- name: Cargo clippy
run: cargo clippy --tests --workspace --features jemalloc,ebpf,lua54 -- --deny warnings