Skip to content

Commit

Permalink
refactor: split trippy into multiple crates (#1141)
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiapple852 committed May 18, 2024
1 parent 3645162 commit 98cf608
Show file tree
Hide file tree
Showing 127 changed files with 996 additions and 570 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ jobs:
- name: Copy wintun.dll to current dir
if: startsWith(matrix.build, 'windows')
shell: bash
# The simulation tests run from the crates/trippy-core directory and so `wintun.dll` needs to be copied there
run: |
cp "tests/resources/wintun.dll" "."
cp "crates/trippy-core/tests/resources/wintun.dll" "./crates/trippy-core/"
- name: Allow ICMPv4 and ICMPv6 in Windows defender firewall
if: startsWith(matrix.build, 'windows')
shell: pwsh
Expand Down Expand Up @@ -195,5 +196,11 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: install cargo-msrv
run: cargo install --git https://github.com/foresterre/cargo-msrv.git cargo-msrv
- name: check msrv
run: cargo msrv --output-format json verify -- cargo check
- name: check msrv for trippy
run: cargo msrv verify --output-format json --manifest-path crates/trippy/Cargo.toml -- cargo check
- name: check msrv for trippy-core
run: cargo msrv verify --output-format json --manifest-path crates/trippy-core/Cargo.toml -- cargo check
- name: check msrv for trippy-dns
run: cargo msrv verify --output-format json --manifest-path crates/trippy-dns/Cargo.toml -- cargo check
- name: check msrv for trippy-privilege
run: cargo msrv verify --output-format json --manifest-path crates/trippy-privilege/Cargo.toml -- cargo check
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ jobs:
if: startsWith(matrix.build, 'x86_64-linux-gnu')
run: |
cargo install cargo-generate-rpm
cargo generate-rpm --target ${{ matrix.target }} -o target/${{ matrix.target }}/generate-rpm/trippy-${{ needs.create-release.outputs.trip_version }}-x86_64.rpm
cargo generate-rpm -p crates/trippy --target ${{ matrix.target }} -o target/${{ matrix.target }}/generate-rpm/trippy-${{ needs.create-release.outputs.trip_version }}-x86_64.rpm
- name: Upload RPM package
if: startsWith(matrix.build, 'x86_64-linux-gnu')
Expand Down
Loading

0 comments on commit 98cf608

Please sign in to comment.