Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci #40

Merged
merged 4 commits into from
Feb 19, 2024
Merged

Ci #40

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 0 additions & 69 deletions .cirrus.yml

This file was deleted.

74 changes: 74 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 2 additions & 4 deletions ethox-afxdp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Loading