Skip to content

appveyor: derive the build version from the repo#819

Merged
Youw merged 1 commit into
masterfrom
appveyor-version-from-repo
Jun 14, 2026
Merged

appveyor: derive the build version from the repo#819
Youw merged 1 commit into
masterfrom
appveyor-version-from-repo

Conversation

@Youw

@Youw Youw commented Jun 14, 2026

Copy link
Copy Markdown
Member

Summary

The AppVeyor "Build version format" is currently hard-coded in the project's web settings. This moves version control into the repo:

  • adds version: '{build}' to .appveyor.yml (a version: in the file overrides the UI setting), and
  • in a before_build step, replaces it with a version derived from the repo — the VERSION file + the short commit hash + the build number:
0.16.0-1a2b3c4.42

Update-AppveyorBuild runs after checkout (so the VERSION file is available); APPVEYOR_REPO_COMMIT provides the commit and APPVEYOR_BUILD_NUMBER keeps each build's version unique even if the same commit is built more than once.

Assisted-by: claude-code:claude-opus-4-8

Comment thread .appveyor.yml Outdated
The "Build version format" was hard-coded in the AppVeyor project settings.
Move it into the repo: set a placeholder version in .appveyor.yml (which
overrides the UI setting) and, in before_build, replace it with the version
from the VERSION file, the short commit hash and the build number, e.g.
0.16.0-1a2b3c4.42. The build number keeps each build's version unique even
if the same commit is built more than once.

Assisted-by: claude-code:claude-opus-4-8
@Youw Youw force-pushed the appveyor-version-from-repo branch from 02f140d to bd64102 Compare June 14, 2026 11:21
@Youw Youw merged commit c9891af into master Jun 14, 2026
23 of 25 checks passed
@Youw Youw deleted the appveyor-version-from-repo branch June 14, 2026 11:31
@mcuee mcuee added the build system/CI Anything related to building the project or running on CI label Jun 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build system/CI Anything related to building the project or running on CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants