-
Notifications
You must be signed in to change notification settings - Fork 3
66 lines (63 loc) · 2.09 KB
/
test.yml
File metadata and controls
66 lines (63 loc) · 2.09 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
name: Test
on:
push:
paths-ignore:
- "documents/**"
- "assets/**"
pull_request:
types: [ready_for_review, opened, synchronize, reopened]
paths-ignore:
- "documents/**"
- "assets/**"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
jobs:
test-all-features:
name: cargo test with all features
strategy:
fail-fast: false
matrix:
include:
- kernel: "5.4"
llvm: "14"
- kernel: "5.15"
llvm: "17"
- kernel: "6.8"
llvm: "17"
- kernel: "6.12"
llvm: "17"
runs-on: ${{ matrix.kernel }}
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
- run: sudo apt update && sudo apt install ethtool iputils-ping iproute2 iperf3 pkg-config m4 libelf-dev libpcap-dev gcc-multilib libnftnl-dev libmnl-dev autoconf automake autopoint flex bison gawk libtool -y
- name: Cache LLVM and Clang
id: cache-llvm
uses: maxnowack/local-cache@v2
with:
path: |
C:/Program Files/LLVM
./llvm
key: llvm-${{ matrix.llvm }}
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v2
with:
version: ${{ matrix.llvm }}
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
- name: Install nextest
uses: taiki-e/install-action@nextest
- run: cargo nextest run --profile ci -F http,xdp --release --workspace
env:
RUST_LOG: "info"
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER: "sudo -E"
# For insta to disable writing new snapshot files and fail on mismatch
CI: "true"
- name: Test CLI
run: ./ci/scripts/test_cli.sh
- run: sudo ./scripts/clean_stdenv.sh -a