Skip to content

Commit

Permalink
Merge pull request #40 from HeroicKatora/ci
Browse files Browse the repository at this point in the history
Ci
  • Loading branch information
HeroicKatora authored Feb 19, 2024
2 parents 9f1d9e7 + 9e2110c commit af71366
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 73 deletions.
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"

0 comments on commit af71366

Please sign in to comment.