diff --git a/.cirrus.yml b/.cirrus.yml deleted file mode 100644 index 9c1c0a2..0000000 --- a/.cirrus.yml +++ /dev/null @@ -1,69 +0,0 @@ -main_task: - container: - image: rust:latest - cargo_cache: - folder: $CARGO_HOME/registry - fingerprint_script: cargo update && cat Cargo.lock - env: - matrix: - - ETHOX_FEATURES: - - ETHOX_FEATURES: alloc - - ETHOX_FEATURES: std - - ETHOX_FEATURES: sys - - ETHOX_FEATURES: alloc sys - - ETHOX_FEATURES: std sys - build_script: - - cd ethox - - cargo build --no-default-features --features "$ETHOX_FEATURES" - test_script: - - cd ethox - - cargo test --no-default-features --features "$ETHOX_FEATURES" - before_cache_script: rm -rf $CARGO_HOME/registry/index - -side_crates_task: - container: - image: rust:latest - cargo_cache: - folder: $CARGO_HOME/registry - fingerprint_script: cargo update && cat Cargo.lock - iperf_script: - - cd ethox-iperf - - cargo build --examples --bins - - cargo test - no_std_script: - - cd ethox-no-std - - cargo build --release - - ls -sh target/release/raw-ping - - strip target/release/raw-ping - - ls -sh target/release/raw-ping - bpf_script: - - apt-get update - - apt-get -y install libpcap-dev - - cd ethox-bpf - - cargo test - -uring_task: - container: - image: rust:1.41.0-alpine3.11 - allow_failures: true - uring_script: - - cd ethox-io-uring - - cargo test - -nightly_task: - container: - image: rustlang/rust:nightly - cargo_cache: - folder: $CARGO_HOME/registry - fingerprint_script: cargo update && cat Cargo.lock - test_all_script: - - cd ethox - - cargo test --all-features - before_cache_script: rm -rf $CARGO_HOME/registry/index - -doc_task: - container: - image: rustlang/rust:nightly - script: - - cd ethox - - cargo doc --no-deps --document-private-items --all-features diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e63ac0e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,74 @@ +name: ci +on: + push: + branches: [ develop, master ] + tags: + - 'v[1-9]+.[0-9]+.[0-9]+[0-9a-z]*' + pull_request: + branches: [ develop, master ] +jobs: + main_task: + runs-on: ubuntu-latest + strategy: + matrix: + ETHOX_FEATURES: ['', 'alloc', 'std', 'sys', 'alloc sys', 'std sys'] + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - run: | + cd ethox + cargo build --no-default-features --features "$ETHOX_FEATURES" + cargo test --no-default-features --features "$ETHOX_FEATURES" + env: + ETHOX_FEATURES: "${{ matrix.ETHOX_FEATURES }}" + + side_crates_task: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - name: ethox-iperf + run: | + cd ethox-iperf + cargo build --examples --bins + cargo test + - name: ethox-no-std + run: | + cd ethox-no-std + cargo build --release + ls -sh target/release/raw-ping + strip target/release/raw-ping + ls -sh target/release/raw-ping + - name: bpf_script + run: | + apt-get update + apt-get -y install libpcap-dev + cd ethox-bpf + cargo test + + uring_task: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@nightly + - run: | + cd ethox-io-uring + cargo test + + nightly_task: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@nightly + - run: | + cd ethox + cargo test --all-features + + doc_task: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@nightly + - run: | + cd ethox + cargo doc --no-deps --document-private-items --all-features diff --git a/ethox-afxdp/Cargo.toml b/ethox-afxdp/Cargo.toml index 0611c06..df3f269 100644 --- a/ethox-afxdp/Cargo.toml +++ b/ethox-afxdp/Cargo.toml @@ -8,14 +8,12 @@ ethox = { path = "../ethox" } [dependencies.bytemuck] version = "1.7" [dependencies.abpfiff] -version = "0.1.0" -path = "../../abpfiff" +version = "0.1.1-alpha.with.debug" [dependencies.libc] version = "0.2.103" default-features = false [dependencies.xdpilone] -version = "1.0.1" -path = "../../xdpilone" +version = "1.0.3" [dev-dependencies.ethox-iperf] path = "../ethox-iperf"