Skip to content

ci: build on current Windows runners and release from a tag - #1

Merged
stasadev merged 1 commit into
mainfrom
20261202_stasadev_envar_ci
Dec 2, 2026
Merged

stasadev merged 1 commit into
mainfrom
20261202_stasadev_envar_ci

Conversation

@stasadev

@stasadev stasadev commented Dec 2, 2026

Copy link
Copy Markdown
Member

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

## 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>
@stasadev
stasadev merged commit 21ca82c into main Dec 2, 2026
2 checks passed
@stasadev
stasadev deleted the 20261202_stasadev_envar_ci branch December 2, 2026 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant