From 1da830c4ec3958102001e8ef436f5d10db9b0bd2 Mon Sep 17 00:00:00 2001 From: GyulyVGC Date: Sun, 16 Feb 2025 11:15:02 +0100 Subject: [PATCH] fix package workflow --- .github/workflows/package.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index c5f9bfad..96d6ecac 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -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 }}