Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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