@@ -33,7 +33,7 @@ inputs:
3333 description : " Runner OS for cache key (e.g., ubuntu-latest, mac-latest)"
3434 required : true
3535 go-version :
36- description : " Go version being used (e.g., 1.24 .x, 1.22 ). Benchstat requires Go 1.23 +"
36+ description : " Go version being used (e.g., 1.25 .x, 1.24 ). Benchstat requires Go 1.25 +"
3737 required : true
3838
3939outputs :
@@ -44,14 +44,14 @@ outputs:
4444 description : " How benchstat was obtained: cached, fresh, or skipped"
4545 value : ${{ steps.installation-summary.outputs.method }}
4646 skipped :
47- description : " Whether benchstat installation was skipped due to Go version < 1.23 "
47+ description : " Whether benchstat installation was skipped due to Go version < 1.25 "
4848 value : ${{ steps.version-check.outputs.skip }}
4949
5050runs :
5151 using : " composite"
5252 steps :
5353 # --------------------------------------------------------------------
54- # Check Go version compatibility (benchstat requires Go 1.23 +)
54+ # Check Go version compatibility (benchstat requires Go 1.25 +)
5555 # --------------------------------------------------------------------
5656 - name : 🔍 Check Go version compatibility
5757 id : version-check
@@ -67,17 +67,17 @@ runs:
6767 MINOR=$(echo "$GO_VERSION" | sed -E 's/^[0-9]+\.([0-9]+).*/\1/')
6868
6969 if [ -z "$MAJOR" ] || [ -z "$MINOR" ] || ! [[ "$MAJOR" =~ ^[0-9]+$ ]] || ! [[ "$MINOR" =~ ^[0-9]+$ ]]; then
70- echo "❌ Could not parse Go version '$GO_VERSION'. Please provide a valid Go version (e.g., '1.23 ', '1.24 .x')." >&2
70+ echo "❌ Could not parse Go version '$GO_VERSION'. Please provide a valid Go version (e.g., '1.25 ', '1.26 .x')." >&2
7171 exit 1
7272 elif [ "$MAJOR" -gt 1 ]; then
73- # Any Go major version > 1 is considered compatible with the 1.23 + requirement
74- echo "✅ Go $GO_VERSION >= 1.23 : proceeding with benchstat installation"
73+ # Any Go major version > 1 is considered compatible with the 1.25 + requirement
74+ echo "✅ Go $GO_VERSION >= 1.25 : proceeding with benchstat installation"
7575 echo "skip=false" >> $GITHUB_OUTPUT
76- elif [ "$MAJOR" -eq 1 ] && [ "$MINOR" -lt 23 ]; then
77- echo "⚠️ Go $GO_VERSION < 1.23 : skipping benchstat installation (requires Go 1.23 +)"
76+ elif [ "$MAJOR" -eq 1 ] && [ "$MINOR" -lt 25 ]; then
77+ echo "⚠️ Go $GO_VERSION < 1.25 : skipping benchstat installation (requires Go 1.25 +)"
7878 echo "skip=true" >> $GITHUB_OUTPUT
7979 else
80- echo "✅ Go $GO_VERSION >= 1.23 : proceeding with benchstat installation"
80+ echo "✅ Go $GO_VERSION >= 1.25 : proceeding with benchstat installation"
8181 echo "skip=false" >> $GITHUB_OUTPUT
8282 fi
8383
8787 - name : 💾 Restore benchstat binary cache
8888 if : steps.version-check.outputs.skip != 'true'
8989 id : benchstat-cache
90- uses : actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
90+ uses : actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
9191 with :
9292 path : ~/.cache/benchstat-bin
9393 key : ${{ inputs.runner-os }}-benchstat-${{ inputs.benchstat-version }}
@@ -140,7 +140,7 @@ runs:
140140 run : |
141141 # Check if installation was skipped due to Go version
142142 if [[ "${{ steps.version-check.outputs.skip }}" == "true" ]]; then
143- echo "⏭️ Benchstat installation skipped (Go version < 1.23 )"
143+ echo "⏭️ Benchstat installation skipped (Go version < 1.25 )"
144144 echo "method=skipped" >> $GITHUB_OUTPUT
145145 echo "📋 Installation method: Skipped"
146146 exit 0
0 commit comments