Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/aixgo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ jobs:
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
# Floating on purpose, unlike this repo's own workflows: this job
# checks out the ADOPTER's repository, so go-version-file would read
# their go.mod, not ours. The CLI needs whatever the newest 1.26.x
# is; setup-go resolves that from the floating constraint.
go-version: "1.26"

- name: Install Aixgo CLI
Expand Down Expand Up @@ -181,6 +185,10 @@ jobs:
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
# Floating on purpose, unlike this repo's own workflows: this job
# checks out the ADOPTER's repository, so go-version-file would read
# their go.mod, not ours. The CLI needs whatever the newest 1.26.x
# is; setup-go resolves that from the floating constraint.
go-version: "1.26"

- name: Install Aixgo CLI
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,11 @@ permissions:
jobs:
check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go-version: ["1.26"]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: ${{ matrix.go-version }}
go-version-file: 'go.mod'
- run: make check
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,11 @@ jobs:
permissions:
contents: read
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go-version: ["1.26"]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: ${{ matrix.go-version }}
go-version-file: 'go.mod'
- run: make check

release:
Expand All @@ -30,7 +26,7 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: "1.26"
go-version-file: 'go.mod'
- name: Extract release notes
id: notes
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: "1.26"
go-version-file: 'go.mod'

- name: Verify the release is ready
env:
Expand Down
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ module github.com/aixgo-dev/code

go 1.26

// The single Go pin for this repo's own CI: check, release, and
// tag-release read this file via go-version-file. The reusable workflow
// floats on "1.26" instead, because it runs in adopter checkouts.
toolchain go1.26.5

// v0.1.2 was tagged from the wrong commit (the release-prep commit was not yet
// pulled), so its version strings and workflow pins point at v0.1.1. The tag
// could not be re-pointed: proxy.golang.org and sum.golang.org had already
Expand Down