mirror of
https://github.com/GyulyVGC/sniffnet.git
synced 2026-08-27 03:49:31 +00:00
fix package workflow
This commit is contained in:
parent
229d27d723
commit
1da830c4ec
1 changed files with 14 additions and 7 deletions
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 }}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue