Repository navigation
fix: return CLI-owned image build recipes (#9) #89
Workflow file for this run
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
| name: GoReleaser | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 | |
| - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5 | |
| with: | |
| go-version-file: go.mod | |
| # go.mod pins a `toolchain` newer than the `go` line, so setup-go | |
| # installs the older Go and GOTOOLCHAIN downloads the toolchain | |
| # module into the cache. setup-go's cache tar then collides on those | |
| # read-only toolchain files, failing every release. | |
| cache: false | |
| - name: Setup | |
| run: | | |
| curl -LsSf https://astral.sh/uv/install.sh | sh | |
| echo "$HOME/.local/bin" >> "$GITHUB_PATH" | |
| - name: Test | |
| run: go test -v ./... | |
| release: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 | |
| with: | |
| fetch-depth: 0 | |
| # ARCHITECTURE: the shared core release workflow runs goreleaser-action | |
| # on a bare runner, which has no macOS or cross-linux compilers. The | |
| # binary links Core's tree-sitter grammars (CGO), so releasing it needs | |
| # the toolchain this maintained image supplies — see .goreleaser.yaml. | |
| - name: Run CGO-capable GoReleaser | |
| run: >- | |
| docker run --rm | |
| -e GITHUB_TOKEN | |
| -v "$GITHUB_WORKSPACE:/workspace" | |
| -w /workspace | |
| ghcr.io/goreleaser/goreleaser-cross:v1.26.4 | |
| release --clean | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GH_PAT }} |