You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.0 KiB
YAML
55 lines
1.0 KiB
YAML
3 years ago
|
name: CI
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- main
|
||
|
|
||
|
pull_request:
|
||
|
branches:
|
||
|
- main
|
||
|
|
||
|
env:
|
||
|
CARGO_TERM_COLOR: always
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-20.04
|
||
|
strategy:
|
||
|
fail-fast: false
|
||
|
matrix:
|
||
|
program:
|
||
|
- kprobe
|
||
|
- kretprobe
|
||
|
- uprobe
|
||
|
- uretprobe
|
||
|
- sock_ops
|
||
|
- sk_msg
|
||
|
- xdp
|
||
|
- classifier
|
||
|
- cgroup_skb
|
||
|
- tracepoint
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
|
||
|
- name: Install latest stable
|
||
|
uses: actions-rs/toolchain@v1
|
||
|
with:
|
||
|
toolchain: stable
|
||
|
|
||
|
- name: Install latest nightly
|
||
|
uses: actions-rs/toolchain@v1
|
||
|
with:
|
||
|
toolchain: nightly
|
||
|
components: rust-src
|
||
|
|
||
|
- name: Install bpf-linker
|
||
|
run: cargo +nightly install bpf-linker
|
||
|
|
||
|
- name: Install Cargo Generate
|
||
|
run: cargo install --git https://github.com/cargo-generate/cargo-generate
|
||
|
|
||
|
- name: Run tests
|
||
|
run: ./test.sh ${{ github.workspace }} ${{ matrix.program }}
|