ci: package windows agent as WiX MSI

This commit is contained in:
2026-07-17 11:35:09 +01:00
parent 42d1ec99a8
commit d206bb0541
4 changed files with 122 additions and 1 deletions
+46
View File
@@ -53,3 +53,49 @@ jobs:
agent/dist/vantage-agent-linux-arm64
agent/dist/vantage-agent-windows-amd64.exe
agent/dist/checksums.txt
msi:
needs: build
runs-on: ubuntu-docker
container: mcr.microsoft.com/dotnet/sdk:9.0
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.26"
cache: true
cache-dependency-path: agent/go.sum
- name: Build agent exe
working-directory: agent
run: |
GOOS=windows GOARCH=amd64 go build \
-o ../installer/vantage-agent-windows-amd64.exe ./cmd
- name: Fetch nssm
working-directory: installer
run: |
apt-get update && apt-get install -y unzip curl
curl -fsSL -o nssm.zip https://nssm.cc/release/nssm-2.24.zip
unzip -j nssm.zip 'nssm-2.24/win64/nssm.exe' -d .
- name: Install WiX
run: dotnet tool install --global wix --version 5.*
- name: Build MSI
working-directory: installer
run: |
export PATH="$PATH:/root/.dotnet/tools"
wix build vantage-agent.wxs -o vantage-agent.msi
sha256sum vantage-agent.msi > checksums-msi.txt
- name: Attach MSI to release
uses: https://gitea.com/actions/gitea-release-action@v1
with:
token: ${{ secrets.RELEASE_TOKEN }}
files: |
installer/vantage-agent.msi
installer/checksums-msi.txt