feat(ci): add release and auto-tag workflows#59
Merged
Conversation
- auto-tag.yml: auto-create version tag on pyproject.toml changes - release.yml: build wheel in manylinux container + create GitHub Release Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Only trigger CI on PRs when code/build-related files change. Push to main always triggers (changes are already reviewed). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Check pyproject.toml version matches chipcompiler/__version__ before running the full CI build, catching version drift early. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Move duplicated version consistency check into a composite action (.github/actions/check-version) used by both CI and release workflows. Supports optional tag validation via expected_tag input. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sync MODULE.bazel version with pyproject.toml (0.1.0-alpha). Check-version action now verifies all three sources match: pyproject.toml, MODULE.bazel, and chipcompiler/__version__. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
e4b8c2a to
a6bfe19
Compare
There was a problem hiding this comment.
Pull request overview
Adds GitHub Actions workflows to automate version tagging and releases, plus a shared version-consistency check, and bumps the project version for an alpha pre-release.
Changes:
- Add
auto-tag.ymlto create/push av*tag whenpyproject.tomlversion changes onmain. - Add
release.ymlto build the wheel in a manylinux container and publish a GitHub Release forv*tags. - Introduce a composite action to check version consistency and update repo version strings / wheel output naming.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| pyproject.toml | Bump Python package version to an alpha pre-release. |
| chipcompiler/init.py | Bump runtime __version__. |
| bazel/scripts/build-wheel.sh | Update wheel smoke-test version assertion. |
| MODULE.bazel | Update Bazel module version. |
| BUILD.bazel | Update expected raw wheel output filename. |
| .github/workflows/ci.yml | Add version-consistency job; add PR path filtering. |
| .github/workflows/release.yml | New release workflow to build wheel + publish GitHub Release. |
| .github/workflows/auto-tag.yml | New workflow to auto-create a v<version> tag from pyproject.toml. |
| .github/actions/check-version/action.yml | New composite action to validate versions match (and optionally match tag). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Replace the hard-coded version assertion in build-wheel.sh with a dynamic extraction from pyproject.toml. This avoids manual script updates on every version bump and ensures the smoke test validates consistency between the build manifest and the installed package. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add .github/workflows/release.yml, .github/workflows/auto-tag.yml, and .github/actions/** to the pull_request.paths filter. This ensures changes to release/tag workflows and composite actions trigger CI for validation before merge. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace the unversioned curl download of bazelisk-latest with the pinned bazel-contrib/setup-bazel@0.14.0 action used in CI. This eliminates supply-chain risk from unverified latest binaries and adds bazelisk/disk/repository caching for reproducible, faster release builds. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.