diff --git a/.github/actionlint.yaml b/.github/actionlint.yaml index 7eb2d26..093fe2a 100644 --- a/.github/actionlint.yaml +++ b/.github/actionlint.yaml @@ -2,3 +2,4 @@ self-hosted-runner: labels: - crabbox - openclaw + - xcode-27 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index c36b5ca..9c95112 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -79,6 +79,7 @@ jobs: analyze-swift: name: Analyze (swift) + # CodeQL Swift tracing does not support macOS 27 yet: https://github.com/github/codeql/issues/22742 runs-on: macos-26 timeout-minutes: 45 steps: diff --git a/.github/workflows/macos-tests.yml b/.github/workflows/macos-tests.yml index 0b0130a..d717551 100644 --- a/.github/workflows/macos-tests.yml +++ b/.github/workflows/macos-tests.yml @@ -25,7 +25,7 @@ concurrency: jobs: swift: name: Native macOS tests - runs-on: macos-26 + runs-on: xcode-27 timeout-minutes: 20 steps: - name: Check out diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 732aca9..9ba3e9a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,12 +10,52 @@ on: description: "Tag to (re)release (e.g. v0.1.0)" required: true type: string + dry_run: + description: "Build current main as a snapshot without publishing" + type: boolean + default: false permissions: contents: write jobs: + dry-run: + if: ${{ inputs.dry_run }} + runs-on: ubuntu-latest + timeout-minutes: 20 + permissions: + contents: read + steps: + - name: Check out current source + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + fetch-depth: 0 + persist-credentials: false + + - name: Validate version tag + env: + RELEASE_TAG: ${{ inputs.tag }} + run: | + [[ "$RELEASE_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$ ]] + git rev-parse --verify "refs/tags/$RELEASE_TAG^{commit}" + + - name: Set up Go + uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 + with: + go-version: "1.27.2" + cache: true + + - name: Build release snapshot + uses: goreleaser/goreleaser-action@f06c13b6b1a9625abc9e6e439d9c05a8f2190e94 # v7.2.3 + with: + distribution: goreleaser + version: "~> v2" + args: release --snapshot --clean --skip=publish + env: + GORELEASER_CURRENT_TAG: ${{ inputs.tag }} + goreleaser: + if: ${{ !inputs.dry_run }} runs-on: ubuntu-latest timeout-minutes: 20 steps: @@ -54,7 +94,7 @@ jobs: - name: Set up Go uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: - go-version-file: go.mod + go-version: "1.27.2" cache: true - name: Prepare release notes diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f076ad..93432fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +- Run native macOS CI on Xcode 27 while retaining the existing app deployment floors and the supported Swift CodeQL runner; support read-only release snapshot checks. +- Build with Go 1.27.2 to fix reachable standard-library vulnerabilities while retaining the Go 1.26 source minimum. - Refresh Worker types and build tools, Rust client WebAssembly bindings and Tokio, and CodeQL while retaining the runtime floors and 48-hour dependency cooldown. - Keep Tight fallback from resizing a shared Mac capture without exclusive resize ownership, and release the gate after failed updates, thanks @SebTardif (#152). - Release consumed Mac relay bytes without copying the unread tail on every small read, thanks @SebTardif (#151). diff --git a/RELEASING.md b/RELEASING.md index fb3be3a..c895165 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -6,6 +6,10 @@ version comes from the tag through the build linker flags; the private Node package and experimental Rust workspace do not use that version. Native Mac and Windows binaries are not packaged by this workflow. +To verify the current main source without publishing, dispatch `release.yml` +on main with the current release `tag` and `dry_run: true`. The read-only job +builds a GoReleaser snapshot; it does not check out the old tag or publish assets. + 1. Run the gates in `AGENTS.md` and review the changes. Use a patch version for fixes, or a minor version for features and compatibility requirement changes. 2. Finalize the changelog as `## X.Y.Z - YYYY-MM-DD` with a highlights lead-in, diff --git a/go.mod b/go.mod index de310ba..6c3878f 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,7 @@ module github.com/openclaw/crabfleet go 1.26.0 -toolchain go1.27.1 +toolchain go1.27.2 require ( github.com/coder/websocket v1.8.15