Skip to content

Commit 3802026

Browse files
fix: drop Windows builds and bump Go to 1.25 in release workflow
fleeting-artifact pulls mcr.microsoft.com/windows/nanoserver base images when packaging windows/amd64 targets, which fails on Linux runners. Since this plugin manages Scaleway Apple Silicon (macOS) servers there is no reason to ship Windows runner binaries. Also bump GO_VERSION to 1.25 to match the minimum required by the current @latest fleeting-artifact, avoiding a slow toolchain auto-download step.
1 parent 20e3393 commit 3802026

1 file changed

Lines changed: 10 additions & 13 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212

1313
env:
1414
IMAGE: ghcr.io/${{ github.repository }}
15-
GO_VERSION: "1.24"
15+
GO_VERSION: "1.25"
1616

1717
jobs:
1818
# ── 1. Build binaries for all platforms (parallelised) ───────────────────────
@@ -22,14 +22,12 @@ jobs:
2222
strategy:
2323
matrix:
2424
include:
25-
- { os: linux, arch: amd64 }
26-
- { os: linux, arch: arm64 }
27-
- { os: linux, arch: arm, variant: "7" }
28-
- { os: linux, arch: "386" }
29-
- { os: darwin, arch: amd64 }
30-
- { os: darwin, arch: arm64 }
31-
- { os: windows, arch: amd64 }
32-
- { os: windows, arch: "386" }
25+
- { os: linux, arch: amd64 }
26+
- { os: linux, arch: arm64 }
27+
- { os: linux, arch: arm, variant: "7" }
28+
- { os: linux, arch: "386" }
29+
- { os: darwin, arch: amd64 }
30+
- { os: darwin, arch: arm64 }
3331

3432
steps:
3533
- uses: actions/checkout@v4
@@ -53,7 +51,6 @@ jobs:
5351
PKG="github.com/codecentric/fleeting-plugin-scaleway"
5452
5553
ARCH_DIR="${{ matrix.arch }}${{ matrix.variant && format('v{0}', matrix.variant) || '' }}"
56-
EXT="${{ matrix.os == 'windows' && '.exe' || '' }}"
5754
OUTDIR="dist/${{ matrix.os }}/${ARCH_DIR}"
5855
mkdir -p "${OUTDIR}"
5956
@@ -63,10 +60,10 @@ jobs:
6360
-X ${PKG}.REVISION=${REVISION} \
6461
-X ${PKG}.REFERENCE=${REFERENCE} \
6562
-X ${PKG}.BUILT=${BUILT}" \
66-
-o "${OUTDIR}/plugin${EXT}" \
63+
-o "${OUTDIR}/plugin" \
6764
./cmd/fleeting-plugin-scaleway/...
6865
69-
echo "Built ${OUTDIR}/plugin${EXT}"
66+
echo "Built ${OUTDIR}/plugin"
7067
7168
- name: Upload dist artifact
7269
uses: actions/upload-artifact@v4
@@ -143,7 +140,7 @@ jobs:
143140
# Build checksums of all binaries for the GitHub release assets
144141
- name: Generate checksums
145142
run: |
146-
find dist -type f -name 'plugin*' | sort | xargs sha256sum > checksums.txt
143+
find dist -type f -name 'plugin' | sort | xargs sha256sum > checksums.txt
147144
cat checksums.txt
148145
149146
# Create a GitHub release with the binary archives and checksums

0 commit comments

Comments
 (0)