ci-platforms / darwin amd64 smoke (push) Skipped
ci-platforms / windows amd64 smoke (push) Skipped
ci-platforms / darwin arm64 smoke (push) Skipped
github-native / linux amd64 native (push) Skipped
ci / checks (push) Successful in 6m33s
ci / build (amd64, linux, ubuntu-24.04) (push) Failing after 12m26s
ci / release (push) Skipped
github-native / darwin amd64 native (push) Canceled after 0s
github-native / windows amd64 native (push) Canceled after 0s
github-native / darwin arm64 native (push) Canceled after 0s
26 lines
1.3 KiB
Bash
26 lines
1.3 KiB
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
root="$PWD/.cache/github-ci"
|
|
stage="$root/windows-stage"
|
|
portable="$root/dist/portable"
|
|
installer="$root/dist/installer"
|
|
mkdir -p "$stage" "$portable" "$installer"
|
|
printf 'CI build\n%s\n' "$(git rev-parse HEAD)" > "$stage/VERSION"
|
|
cp tools/release/README.txt "$stage/README.txt"
|
|
go run ./tools/brandres -ico "$root/aego.ico" -syso cmd/aego,cmd/aego-editor -version 0.0.0
|
|
go build -trimpath -o "$stage/aego.exe" ./cmd/aego
|
|
go build -trimpath -tags aego_editor -ldflags '-H=windowsgui' -o "$stage/aego-editor.exe" ./cmd/aego-editor
|
|
objdump -p "$stage/aego.exe" > "$root/logs/windows-cli-pe.txt"
|
|
objdump -p "$stage/aego-editor.exe" > "$root/logs/windows-editor-pe.txt"
|
|
export AEGO_CI_STAGE="$(cygpath -w "$stage")"
|
|
export AEGO_CI_ZIP="$(cygpath -w "$portable/aego-windows-amd64-portable.zip")"
|
|
pwsh -NoProfile -Command 'Compress-Archive -Path "$env:AEGO_CI_STAGE\*" -DestinationPath $env:AEGO_CI_ZIP'
|
|
makensis -V2 -DVERSION=0.0.0 \
|
|
"-DSRC=$(cygpath -w "$stage")" \
|
|
"-DOUT=$(cygpath -w "$installer/aego-windows-amd64-setup.exe")" \
|
|
"-DICON=$(cygpath -w "$root/aego.ico")" \
|
|
"$(cygpath -w "$PWD/tools/release/windows/aego.nsi")"
|
|
(cd "$portable" && sha256sum aego-windows-amd64-portable.zip > SHA256SUMS.txt)
|
|
(cd "$installer" && sha256sum aego-windows-amd64-setup.exe > SHA256SUMS.txt)
|