Compare commits

...
Author SHA1 Message Date
SG CommandandClaude Sonnet 5.5 ca357f0adc ci: verify Windows installer build on PRs and fail release on upload errors
Refs #33

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-13 19:08:15 +02:00
3 changed files with 30 additions and 2 deletions
+3 -1
View File
@@ -87,10 +87,12 @@ jobs:
- name: Build Windows installer
run: |
set -euo pipefail
sudo apt-get update
sudo apt-get install -y nsis
VERSION="${{ github.event.inputs.tag || github.ref_name }}"
makensis -DVERSION="${VERSION#v}" -DEXE="$PWD/relspec-windows-amd64.exe" -DOUT="$PWD/relspec-setup-windows-amd64.exe" windows/installer.nsi
test -s relspec-setup-windows-amd64.exe
- name: Build source archives
run: |
@@ -130,7 +132,7 @@ jobs:
for f in relspec-* relspec_*.tar.gz; do
echo "Uploading $f..."
curl -s -X POST "${UPLOAD_URL}?name=${f}" \
curl -sS --fail -X POST "${UPLOAD_URL}?name=${f}" \
-H "Authorization: token ${GITHUB_TOKEN}" \
-H "Content-Type: application/octet-stream" \
--data-binary "@${f}" > /dev/null
+26
View File
@@ -97,3 +97,29 @@ jobs:
run: |
go mod tidy
git diff --exit-code go.mod go.sum
installer-windows:
name: Windows installer
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25'
- name: Install NSIS
run: |
sudo apt-get update
sudo apt-get install -y nsis
- name: Build installer
run: make installer-windows
- name: Verify installer exists
run: |
test -s build/relspec-setup-windows-amd64.exe
ls -lh build/relspec-setup-windows-amd64.exe
+1 -1
View File
@@ -8,7 +8,7 @@ NSIS script: `installer.nsi`. Output: `build/relspec-setup-windows-amd64.exe`.
make installer-windows
```
Needs `makensis` (package `nsis`). CI builds and uploads it on release.
Needs `makensis` (package `nsis`). CI builds it on every PR (`installer-windows` job); the release workflow uploads it as `relspec-setup-windows-amd64.exe`.
## Installer