build-time semantic versioning #21

Manually merged
x1ddos merged 2 commits from semver into master 1 year ago
x1ddos commented 1 year ago
Owner

a very rudimentary UI changes but this is a start for a "sys info" panel:

image

a very rudimentary UI changes but this is a start for a "sys info" panel: ![image](/attachments/418347bb-c65f-4bdf-8530-257ddd2f8b51)
7.1 KiB
x1ddos added 3 commits 1 year ago
4f6fecf98d
build: add semantic versioning support
both programs now acquire semantic versioning recorded at the build
time. they also report the version at startup and -v flag.
this is useful for a more formal release process and to potentially
avoid compatibility issues in the future.

in a regular build flow, the version is taken from a git tag using the
following command:

    git -C . describe --match 'v*.*.*' --tags

in a non-standard scenario where git isn't available, the version can
be provided on the command line during build like so:

    zig build -Dversion=1.2.3

if both git and command line supplied versions are available, they must
match.
871422b030
ui: display build-time semver on a new info panel tab
this adds the 4th tab, an info-icon button, and shows the value of
the release version recorded at build time - a feature added in a
previous commit.
ci/woodpecker/push/woodpecker Pipeline failed Details
ci/woodpecker/pr/woodpecker Pipeline failed Details
0527ddf5c1
build,ui: add build timestamp
together with the build semver, this should provide stable info for
ndg software version running on a given device.
x1ddos commented 1 year ago
Poster
Owner

part of #2

part of https://git.qcode.ch/nakamochi/ndg/issues/2
x1ddos force-pushed semver from 0527ddf5c1 to 665c5413d9 1 year ago
x1ddos changed title from add semantic versioning and timestamp at build time to build-time semantic versioning 1 year ago
x1ddos added 1 commit 1 year ago
ci/woodpecker/push/woodpecker Pipeline failed Details
ci/woodpecker/pr/woodpecker Pipeline failed Details
b7b78cc06e
fixup! build: add semantic versioning support
x1ddos force-pushed semver from b7b78cc06e to 7acec68291 1 year ago
x1ddos force-pushed semver from 7acec68291 to 40b05d16de 1 year ago
x1ddos force-pushed semver from 40b05d16de to b5e9814d68 1 year ago
x1ddos force-pushed semver from b5e9814d68 to 517f9d4056 1 year ago
x1ddos merged commit ec5e15e8e9 into master manually 1 year ago
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: nakamochi/ndg#21
Loading…
There is no content yet.