The tree adds the installer, service and test paths admitted by this source commit. Nothing else changes about what may cross. Source-Sha: 3e4a3aa4ce092e9e3f51bc78daf3ddc14d9638f8 Policy-Sha: 3e4a3aa4ce092e9e3f51bc78daf3ddc14d9638f8 Tree-Digest: 89d6fce3828a0e0de0c8eeb41ee6750f4462217e2a04b5190297134d7f4a50c3
72 lines
2.7 KiB
YAML
72 lines
2.7 KiB
YAML
name: msi-custody-proof
|
|
|
|
# Manual internal proof for an ordinary branch. It calls the same MSI build
|
|
# entry point as release.yml, but creates no tag, release, or public artifact.
|
|
on:
|
|
push:
|
|
branches: [task/windows-product-boundary-20260909]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
prove:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
|
|
|
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
|
|
with:
|
|
go-version-file: server/go.mod
|
|
cache: true
|
|
|
|
- name: Resolve Server version
|
|
id: version
|
|
run: |
|
|
set -euo pipefail
|
|
VERSION=$(grep -P '^\s*AgentVersion\s*=' server/internal/version/versions.go | grep -oP '"\K[^"]+')
|
|
echo "value=$VERSION" >> "$GITHUB_OUTPUT"
|
|
echo "Server version: $VERSION"
|
|
|
|
- name: Check native runtime lifecycle and migration payload
|
|
run: |
|
|
cd server
|
|
go test -race -count=1 ./cmd/server ./internal/database ./internal/config
|
|
|
|
- name: Check MSI version identity and license rendering
|
|
run: python3 -m unittest discover -s installer/windows -p 'test_build_inputs.py' -v
|
|
|
|
- name: Build staged Windows Server
|
|
env:
|
|
GOOS: windows
|
|
GOARCH: amd64
|
|
CGO_ENABLED: "0"
|
|
run: |
|
|
set -euo pipefail
|
|
VERSION="${{ steps.version.outputs.value }}"
|
|
mkdir -p dist
|
|
cd server
|
|
go build -ldflags "-s -w \
|
|
-X github.com/Fimeg/RedFlag/server/internal/version/versions.AgentVersion=$VERSION \
|
|
-X github.com/Fimeg/RedFlag/server/internal/version/versions.ConfigVersion=$VERSION" \
|
|
-o ../dist/redflag-server-windows-amd64.exe ./cmd/server/
|
|
|
|
- name: Build MSI and prove staged-byte custody
|
|
run: |
|
|
set -euo pipefail
|
|
bash installer/windows/provision-msitools.sh "$RUNNER_TEMP/msitools-0.106"
|
|
export PATH="$RUNNER_TEMP/msitools-0.106/bin:$PATH"
|
|
export LD_LIBRARY_PATH="$RUNNER_TEMP/msitools-0.106/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
|
|
installer/windows/build-msi.sh \
|
|
dist/redflag-server-windows-amd64.exe \
|
|
"${{ steps.version.outputs.value }}" \
|
|
dist/RedFlagSetup-windows-amd64.msi \
|
|
dist/installer-proof-windows-amd64.json \
|
|
"$GITHUB_SHA" \
|
|
"$GITHUB_REF"
|
|
|
|
- uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
|
|
with:
|
|
name: RedFlagSetup-windows-amd64-custody-proof
|
|
path: |
|
|
dist/RedFlagSetup-windows-amd64.msi
|
|
dist/installer-proof-windows-amd64.json
|
|
retention-days: 30
|