mirror of
https://github.com/GyulyVGC/sniffnet.git
synced 2025-12-23 22:29:01 -05:00
fix package workflow
This commit is contained in:
21
.github/workflows/package.yml
vendored
21
.github/workflows/package.yml
vendored
@@ -77,20 +77,27 @@ jobs:
|
||||
cargo clippy --release -- -D warnings &&
|
||||
cargo clean
|
||||
|
||||
- name: Check crate
|
||||
run: |
|
||||
cargo publish --dry-run --target ${{ matrix.target }} &&
|
||||
cargo clean
|
||||
|
||||
- name: Install Cross
|
||||
if: matrix.os == 'ubuntu'
|
||||
run: cargo install cross --git https://github.com/cross-rs/cross
|
||||
|
||||
- name: Build binary
|
||||
- name: Check crate (Linux)
|
||||
if: matrix.os == 'ubuntu'
|
||||
run: |
|
||||
cross publish --dry-run --target ${{ matrix.target }} &&
|
||||
cargo clean
|
||||
|
||||
- name: Check crate (macOS/Windows)
|
||||
if: matrix.os == 'macos' || matrix.os == 'windows'
|
||||
run: |
|
||||
cargo publish --dry-run --target ${{ matrix.target }} &&
|
||||
cargo clean
|
||||
|
||||
- name: Build binary (Linux)
|
||||
if: matrix.os == 'ubuntu'
|
||||
run: cross build --release --target ${{ matrix.target }}
|
||||
|
||||
- name: Build binary
|
||||
- name: Build binary (macOS/Windows)
|
||||
if: matrix.os == 'macos' || matrix.os == 'windows'
|
||||
run: cargo build --release --target ${{ matrix.target }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user