Repository navigation
ci: build on current Windows runners and release from a tag - #1
Merged
Merged
Conversation
## Short Summary (TL;DR) The CI never ran in this repository, and it would fail today. It now builds and tests the plugin on `windows-2022`, and a new `v*` tag publishes a release with `EnVar-Plugin.zip`. ## The Issue v0.3.1 was made by hand from upstream's artifacts, because this repository's workflows can't build: - `actions/upload-artifact@v1` is turned off by GitHub, so the build job fails. - `actions/create-release@v1` and `actions/upload-release-asset@v1` are archived, and they only created a draft release. - The project targets toolset v142 and Windows SDK 10.0.16299.0, which the current runners don't have. ## How This PR Solves The Issue | Change | Why | | --- | --- | | `runs-on: windows-2022`, toolset v143, SDK `10.0` | The runner has Visual Studio 2022 with the v143 toolset, and NSIS 3.10 for the plugin test, so nothing has to be installed. SDK `10.0` picks the newest installed SDK. | | `checkout@v7`, `upload-artifact@v7`, `download-artifact@v8` | Supported versions. | | One workflow with a `release` job for `v*` tags | A pushed tag gets a new release with the tested `EnVar-Plugin.zip` and generated notes. A release made in the web UI gets the zip attached after its build. | | `Build.ps1` stops when MSBuild fails | It used to print "failed" and go on, and it now prints the MSBuild log. | | Path filters include `.github/workflows/**` and `Tests/PluginTest.nsi` | The old filter named `Tests/plugin_test.nsi`, which doesn't exist. | Each `Build.ps1` step runs in its own call, because its step loop runs every step once per step name given. ## Automated Testing Overview Claude Code ran `actionlint` on the workflow and parsed `Build.ps1` with PowerShell 7. Nothing ran on a Windows runner yet, so this PR's CI run is the first real test. ## Release/Deployment Notes To release, push a tag such as `v0.3.2` from `main`, or create the release with a new tag in the web UI. The README gets a "Releasing" section with the steps, and its build badge now shows this repository's CI instead of upstream's. The double free fix for DDEV's installer comes in a separate PR after this one, so its CI run uses this workflow. 🤖 Developed with assistance from [Claude Code](https://claude.ai/code) Co-Authored-By: Claude Opus 5.5 <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.
Short Summary (TL;DR)
The CI never ran in this repository, and it would fail today. It now builds and tests the plugin on
windows-2022, and a newv*tag publishes a release withEnVar-Plugin.zip.The Issue
v0.3.1 was made by hand from upstream's artifacts, because this repository's workflows can't build:
actions/upload-artifact@v1is turned off by GitHub, so the build job fails.actions/create-release@v1andactions/upload-release-asset@v1are archived, and they only created a draft release.How This PR Solves The Issue
runs-on: windows-2022, toolset v143, SDK10.010.0picks the newest installed SDK.checkout@v7,upload-artifact@v7,download-artifact@v8releasejob forv*tagsEnVar-Plugin.zipand generated notes. A release made in the web UI gets the zip attached after its build.Build.ps1stops when MSBuild fails.github/workflows/**andTests/PluginTest.nsiTests/plugin_test.nsi, which doesn't exist.Each
Build.ps1step runs in its own call, because its step loop runs every step once per step name given.Automated Testing Overview
Claude Code ran
actionlinton the workflow and parsedBuild.ps1with PowerShell 7. Nothing ran on a Windows runner yet, so this PR's CI run is the first real test.Release/Deployment Notes
To release, push a tag such as
v0.3.2frommain, or create the release with a new tag in the web UI. The README gets a "Releasing" section with the steps, and its build badge now shows this repository's CI instead of upstream's.The double free fix for DDEV's installer comes in a separate PR after this one, so its CI run uses this workflow.
🤖 Developed with assistance from Claude Code