From 7aa6c160802c98f6b01e1420e7da952ecef02302 Mon Sep 17 00:00:00 2001 From: HEnquist Date: Wed, 19 Aug 2026 21:33:43 +0200 Subject: [PATCH 1/2] add publish dry-run to CI --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 576d00e..29e638b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,3 +34,15 @@ jobs: # forwards to it, which is what a dependent crate gets. - name: Clippy (`azo` on its own) run: cargo clippy --package azo --all-targets --all-features -- -D warnings + + publish-dry-run: + runs-on: windows-latest + steps: + - uses: actions/checkout@v5 + + - uses: dtolnay/rust-toolchain@stable + + # `--workspace` verifies `azo` against the locally packaged `azo-sys`, + # rather than the version already on crates.io. + - name: Publish dry-run + run: cargo publish --dry-run --workspace From 3ff106a5347898fd0784a7c94a3500a1cdbce23b Mon Sep 17 00:00:00 2001 From: HEnquist Date: Thu, 20 Aug 2026 19:27:36 +0200 Subject: [PATCH 2/2] add publish job triggered by tags --- .github/workflows/publish.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..76b16ce --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,25 @@ +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' + +name: Publish on crates.io + +jobs: + publish: + name: Publish + # ASIO is Windows-only, and `cargo publish` builds the crate to verify it + runs-on: windows-latest + steps: + - name: Checkout sources + uses: actions/checkout@v5 + + - name: Install toolchain + uses: dtolnay/rust-toolchain@stable + + # `--workspace` publishes `azo-sys` first and waits for it to show up on the + # index before publishing `azo`, which depends on it. + - name: Publish crates + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + run: cargo publish --workspace