Skip to content

Commit

Permalink
fix package workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
GyulyVGC committed Feb 16, 2025
1 parent 229d27d commit 1da830c
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down

0 comments on commit 1da830c

Please sign in to comment.