Repository navigation
Conversation
- Add .github/workflows/ci.yml to verify gofmt, go mod verify/tidy, go vet, SQL isolation invariant, pure-Go (CGO_ENABLED=0) builds/tests across Linux/macOS/Windows, and Linux race detector on all branch pushes and PRs - Add .github/workflows/release.yml to build and publish cross-platform release archives (linux/darwin/windows amd64/arm64 + SHA-256 checksums) when master is tagged with vX.Y.Z - Wire Version on rootCmd in cmd/hunks/main.go for -ldflags '-X main.version=...'
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.
Summary
.github/workflows/ci.yml:lintjob: verifiesgofmt -l .,go mod verify/go mod tidy,CGO_ENABLED=0 go vet ./..., and the SQL isolation invariant (AGENTS.mdInvariant docs(spec): add virtual segment incbin carve-out specification #2).testjob: runsCGO_ENABLED=0 go buildandCGO_ENABLED=0 go test -v ./...acrossubuntu-latest,macos-latest, andwindows-latest, plusCGO_ENABLED=1 go test -race ./...on Linux..github/workflows/release.yml:v[0-9]+.[0-9]+.[0-9]*), verifies the tagged commit is an ancestor oforigin/master, runs thegofmt/go vet/go testgate, cross-compiles staticCGO_ENABLED=0binaries forlinux/{amd64,arm64},darwin/{amd64,arm64}, andwindows/{amd64,arm64}, generateschecksums.txt, and publishes the GitHub Release viagh release.cmd/hunks/main.go:Version: versiononrootCmd(hunks --version).style: gofmt:gofmt -l .passes cleanly.