The public tree and its history contain only the listed paths. Earlier projection history remains preserved internally. Source-Sha: 913fde029b935671833254797f0f20f1eb9fabba Policy-Sha: 913fde029b935671833254797f0f20f1eb9fabba Tree-Digest: 180ae530c1058a2a5c89837bdce2d323ae83e669e38590ca72e75b8d92b7262f
61 lines
2.1 KiB
YAML
61 lines
2.1 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:
|
|
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: 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
|
|
sudo apt-get update -qq
|
|
sudo apt-get install -y -qq jq msitools wixl
|
|
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
|