forked from aya-rs/book
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (46 loc) · 1.15 KB
/
ci.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
53
54
55
56
57
58
59
name: Build
on:
push:
branches:
- main
- staging
pull_request:
branches:
- main
- staging
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install latest stable
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Install latest nightly
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: rust-src
- name: Install bpf-linker
run: cargo install bpf-linker
- uses: Swatinem/rust-cache@v1
- name: Set up Python
uses: actions/setup-python@v3
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Build docs
run: mkdocs build
- name: Check Examples
run: |
for dir in ./examples/*/ ; do
pushd "${dir}"
echo "Example: ${dir}."
cargo xtask build-ebpf
cargo build
popd
done