macosversion

command
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

macosversion reports the current macOS version so the acceptance workflow can decide whether the committed bindings (generated against one SDK major) are exercisable on this runner.

Deliberately does NOT use the generated bindings: this check is what gates their use, so it must work on a runner whose OS predates the bindings' SDK (where loading them can fail). sw_vers is the narrowest OS-independent probe.

When GITHUB_OUTPUT is set the results are written as GitHub Actions step outputs:

macos_version  – full macOS version string, e.g. "26.5"
macos_major    – macOS major version number, e.g. "26"
macos_minor    – macOS minor version number, e.g. "5"

When running locally the same key=value pairs are printed to stdout.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL