|
|
|
@ -21,12 +21,12 @@ concurrency:
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
build:
|
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
|
strategy:
|
|
|
|
|
fail-fast: false
|
|
|
|
|
matrix:
|
|
|
|
|
runner:
|
|
|
|
|
- ubuntu-latest # x86
|
|
|
|
|
rust:
|
|
|
|
|
- stable
|
|
|
|
|
- 1.80.1
|
|
|
|
|
program:
|
|
|
|
|
- kprobe
|
|
|
|
@ -48,6 +48,15 @@ jobs:
|
|
|
|
|
- raw_tracepoint
|
|
|
|
|
- tp_btf
|
|
|
|
|
- tracepoint
|
|
|
|
|
include:
|
|
|
|
|
- runner: macos-13 # x86
|
|
|
|
|
rust: 1.80.1
|
|
|
|
|
program: kprobe
|
|
|
|
|
- runner: macos-14 # arm64
|
|
|
|
|
rust: 1.80.1
|
|
|
|
|
program: kprobe
|
|
|
|
|
|
|
|
|
|
runs-on: ${{ matrix.runner }}
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
@ -57,6 +66,21 @@ jobs:
|
|
|
|
|
components: rust-src,rustfmt
|
|
|
|
|
|
|
|
|
|
- uses: dtolnay/rust-toolchain@master
|
|
|
|
|
if: runner.os == 'macOS' && runner.arch == 'X64'
|
|
|
|
|
with:
|
|
|
|
|
toolchain: ${{ matrix.rust }}
|
|
|
|
|
targets: x86_64-unknown-linux-musl
|
|
|
|
|
components: clippy
|
|
|
|
|
|
|
|
|
|
- uses: dtolnay/rust-toolchain@master
|
|
|
|
|
if: runner.os == 'macOS' && runner.arch == 'ARM64'
|
|
|
|
|
with:
|
|
|
|
|
toolchain: ${{ matrix.rust }}
|
|
|
|
|
targets: aarch64-unknown-linux-musl
|
|
|
|
|
components: clippy
|
|
|
|
|
|
|
|
|
|
- uses: dtolnay/rust-toolchain@master
|
|
|
|
|
if: runner.os == 'Linux'
|
|
|
|
|
with:
|
|
|
|
|
toolchain: ${{ matrix.rust }}
|
|
|
|
|
components: clippy
|
|
|
|
@ -65,8 +89,18 @@ jobs:
|
|
|
|
|
|
|
|
|
|
- uses: taiki-e/install-action@v2
|
|
|
|
|
with:
|
|
|
|
|
tool: bpf-linker,cargo-generate
|
|
|
|
|
tool: cargo-generate
|
|
|
|
|
|
|
|
|
|
- run: brew install filosottile/musl-cross/musl-cross llvm
|
|
|
|
|
if: runner.os == 'macos'
|
|
|
|
|
|
|
|
|
|
- run: cargo install bpf-linker --git https://github.com/aya-rs/bpf-linker.git --no-default-features
|
|
|
|
|
if: runner.os == 'macos'
|
|
|
|
|
|
|
|
|
|
- run: cargo install bpf-linker --git https://github.com/aya-rs/bpf-linker.git
|
|
|
|
|
if: runner.os == 'Linux'
|
|
|
|
|
|
|
|
|
|
- run: sudo apt update && sudo apt install expect
|
|
|
|
|
if: runner.os == 'Linux'
|
|
|
|
|
|
|
|
|
|
- run: sudo apt update
|
|
|
|
|
- run: sudo apt install expect
|
|
|
|
|
- run: ./test.sh ${{ github.workspace }} ${{ matrix.program }}
|
|
|
|
|