From 840d279589d1db6f8098ca442dc2596734af6955 Mon Sep 17 00:00:00 2001 From: Kristof Date: Tue, 27 Jan 2026 07:16:53 +0100 Subject: [PATCH 1/2] use version from root file instead of lib --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 02d1186e..0ffddf22 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -44,7 +44,7 @@ jobs: - name: Read version from Cargo.toml id: cargo_version run: | - CARGO_VERSION=$(grep '^version\s*=' lib/Cargo.toml | head -1 | sed -E 's/version\s*=\s*"([^"]+)"/\1/') + CARGO_VERSION=$(grep '^version\s*=' Cargo.toml | head -1 | sed -E 's/version\s*=\s*"([^"]+)"/\1/') echo "CARGO_VERSION=$CARGO_VERSION" >> "$GITHUB_OUTPUT" - name: Check tag version matches Cargo.toml From d5cd39d6a220c5751c1ec8c8a1b82877f83df408 Mon Sep 17 00:00:00 2001 From: Kristof Date: Fri, 20 Mar 2026 09:45:26 +0100 Subject: [PATCH 2/2] verify publish dryrun --- .github/workflows/rust.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 468bcd55..7bd1a3af 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -57,6 +57,10 @@ jobs: run: | cargo nextest run --workspace --profile ci + # Verify the crate can be published without actually publishing + - name: Publish dry run + run: cargo publish --dry-run --package lepton_jpeg + # Upload test results so GitHub shows pass/fail per test - name: Upload test results uses: EnricoMi/publish-unit-test-result-action/windows@v2