Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ca357f0adc |
@@ -87,10 +87,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Build Windows installer
|
- name: Build Windows installer
|
||||||
run: |
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y nsis
|
sudo apt-get install -y nsis
|
||||||
VERSION="${{ github.event.inputs.tag || github.ref_name }}"
|
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
|
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
|
- name: Build source archives
|
||||||
run: |
|
run: |
|
||||||
@@ -130,7 +132,7 @@ jobs:
|
|||||||
|
|
||||||
for f in relspec-* relspec_*.tar.gz; do
|
for f in relspec-* relspec_*.tar.gz; do
|
||||||
echo "Uploading $f..."
|
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 "Authorization: token ${GITHUB_TOKEN}" \
|
||||||
-H "Content-Type: application/octet-stream" \
|
-H "Content-Type: application/octet-stream" \
|
||||||
--data-binary "@${f}" > /dev/null
|
--data-binary "@${f}" > /dev/null
|
||||||
|
|||||||
@@ -97,3 +97,29 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
go mod tidy
|
go mod tidy
|
||||||
git diff --exit-code go.mod go.sum
|
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
@@ -8,7 +8,7 @@ NSIS script: `installer.nsi`. Output: `build/relspec-setup-windows-amd64.exe`.
|
|||||||
make installer-windows
|
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
|
## Installer
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user