Author SHA1 Message Date
sanspie 520d7af5d2 Prepare signed release manifest without publication
aego-release-manifest-sign-only / sign-manifest (push) Successful in 2s
2026-11-17 05:13:01 +03:00
sanspie df3a92324e ci: report Studio gate failures as warnings
GitHub / windows amd64 native GitHub-hosted native CI: success
ci-platforms / windows amd64 smoke (push) Skipped
GitHub / darwin amd64 native GitHub-hosted native CI: success
GitHub / linux amd64 native GitHub-hosted native CI: success
ci-platforms / darwin amd64 smoke (push) Skipped
ci-platforms / darwin arm64 smoke (push) Skipped
github-native / gitea-pending (push) Skipped
github-native / darwin amd64 native (push) Skipped
github-native / linux amd64 native (push) Skipped
github-native / windows amd64 native (push) Skipped
github-native / darwin arm64 native (push) Skipped
github-native / gitea-result (push) Skipped
GitHub / darwin arm64 native GitHub-hosted native CI: success
ci / native-authoring (push) Successful in 1m59s
ci / checks (push) Successful in 1h26m44s
ci / build (amd64, linux, ubuntu-24.04) (push) Successful in 9m39s
ci / release (push) Skipped
2026-11-17 02:19:46 +03:00
sanspie ba0449b9dd test: warm particle resources before Play/Stop leak checks
ci / checks (push) Successful in 1h19m59s
ci / native-authoring (push) Successful in 2m22s
GitHub / darwin arm64 native GitHub-hosted native CI: success
GitHub / darwin amd64 native GitHub-hosted native CI: success
GitHub / linux amd64 native GitHub-hosted native CI: success
ci / build (amd64, linux, ubuntu-24.04) (push) Successful in 8m1s
ci / release (push) Skipped
GitHub / windows amd64 native GitHub-hosted native CI: success
ci-platforms / darwin arm64 smoke (push) Skipped
github-native / gitea-pending (push) Skipped
github-native / darwin amd64 native (push) Skipped
ci-platforms / darwin amd64 smoke (push) Skipped
ci-platforms / windows amd64 smoke (push) Skipped
github-native / linux amd64 native (push) Skipped
github-native / windows amd64 native (push) Skipped
github-native / darwin arm64 native (push) Skipped
github-native / gitea-result (push) Skipped
2026-11-16 16:29:40 +03:00
sanspie e52d012a4c ci: fix Windows release binary identity checks
ci-platforms / windows amd64 smoke (push) Skipped
github-native / gitea-pending (push) Skipped
github-native / darwin amd64 native (push) Skipped
github-native / linux amd64 native (push) Skipped
github-native / windows amd64 native (push) Skipped
github-native / darwin arm64 native (push) Skipped
github-native / gitea-result (push) Skipped
ci / checks (push) Failing after 39m12s
ci / native-authoring (push) Skipped
ci-platforms / darwin arm64 smoke (push) Skipped
ci-platforms / darwin amd64 smoke (push) Skipped
ci / build (amd64, linux, ubuntu-24.04) (push) Successful in 7m29s
ci / release (push) Skipped
2026-11-16 12:06:03 +00:00
sanspie 82132b4119 ci: embed trusted update key in release candidates
ci-platforms / darwin arm64 smoke (push) Skipped
ci-platforms / windows amd64 smoke (push) Skipped
github-native / darwin amd64 native (push) Skipped
github-native / linux amd64 native (push) Skipped
github-native / windows amd64 native (push) Skipped
github-native / darwin arm64 native (push) Skipped
github-native / gitea-result (push) Skipped
ci / native-authoring (push) Successful in 2m13s
GitHub / windows amd64 native GitHub-hosted native CI: success
GitHub / darwin arm64 native GitHub-hosted native CI: success
GitHub / darwin amd64 native GitHub-hosted native CI: success
GitHub / linux amd64 native GitHub-hosted native CI: success
ci / build (amd64, linux, ubuntu-24.04) (push) Successful in 8m36s
ci / release (push) Skipped
ci-platforms / darwin amd64 smoke (push) Skipped
github-native / gitea-pending (push) Skipped
ci / checks (push) Successful in 1h19m25s
2026-11-16 05:06:13 +03:00
Aego CI 32c731ea9b ci: allocate headroom for macOS release images
ci-platforms / darwin arm64 smoke (push) Skipped
ci / native-authoring (push) Successful in 2m23s
ci / checks (push) Successful in 1h27m21s
GitHub / windows amd64 native GitHub-hosted native CI: success
ci-platforms / darwin amd64 smoke (push) Skipped
ci-platforms / windows amd64 smoke (push) Skipped
github-native / gitea-pending (push) Skipped
github-native / darwin amd64 native (push) Skipped
github-native / linux amd64 native (push) Skipped
github-native / windows amd64 native (push) Skipped
github-native / darwin arm64 native (push) Skipped
github-native / gitea-result (push) Skipped
ci / build (amd64, linux, ubuntu-24.04) (push) Successful in 8m14s
ci / release (push) Skipped
GitHub / darwin arm64 native GitHub-hosted native CI: success
GitHub / darwin amd64 native GitHub-hosted native CI: success
GitHub / linux amd64 native GitHub-hosted native CI: success
2026-11-16 00:14:52 +03:00
12 changed files with 902 additions and 131 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+15 -5
View File
@@ -35,7 +35,9 @@ jobs:
with: with:
persist-credentials: false persist-credentials: false
- name: Test artifact preflight - name: Test artifact preflight
run: python3 -B -m unittest discover -s tools/ci -p test_native_artifacts_guard.py -v run: |
python3 -B -m unittest discover -s tools/ci -p test_native_artifacts_guard.py -v
python3 -B -m unittest discover -s tools/ci -p test_release_update_key.py -v
- name: Require exact green CI and master refs - name: Require exact green CI and master refs
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -124,6 +126,9 @@ jobs:
[[ "$RUNNER_ARCH/$(go env GOOS)/$(go env GOARCH)" == X64/linux/amd64 ]] [[ "$RUNNER_ARCH/$(go env GOOS)/$(go env GOARCH)" == X64/linux/amd64 ]]
root="$PWD/.cache/native-artifacts-linux" root="$PWD/.cache/native-artifacts-linux"
[[ ! -L "$PWD/.cache" && ! -e "$root" && ! -L "$root" ]] [[ ! -L "$PWD/.cache" && ! -e "$root" && ! -L "$root" ]]
update_key="$(python3 -B tools/ci/release_update_key.py --value)"
[[ "$update_key" =~ ^[A-Za-z0-9+/]{43}=$ ]]
update_fingerprint="$(AEGO_CI_UPDATE_PUBLIC_KEY="$update_key" python3 -B tools/ci/release_update_key.py --fingerprint)"
base="aego-${AEGO_CI_PACKAGE_VERSION}-linux-amd64" base="aego-${AEGO_CI_PACKAGE_VERSION}-linux-amd64"
stage="$root/$base" stage="$root/$base"
dist="$root/dist" dist="$root/dist"
@@ -131,17 +136,18 @@ jobs:
printf 'v%s\n%s\n' "$AEGO_CI_PACKAGE_VERSION" "$AEGO_CI_PACKAGE_COMMIT" > "$stage/VERSION" printf 'v%s\n%s\n' "$AEGO_CI_PACKAGE_VERSION" "$AEGO_CI_PACKAGE_COMMIT" > "$stage/VERSION"
cp tools/release/README.txt "$stage/README.txt" cp tools/release/README.txt "$stage/README.txt"
cp app/brand/png/aego-256.png "$stage/share/aego.png" cp app/brand/png/aego-256.png "$stage/share/aego.png"
go build -trimpath -ldflags '-s -w' -o "$stage/bin/aego" ./cmd/aego go build -trimpath -ldflags "-s -w -X=aego/update.PublicKey=$update_key" -o "$stage/bin/aego" ./cmd/aego
reported="$("$stage/bin/aego" version)" reported="$("$stage/bin/aego" version)"
[[ "$reported" == "aego ${AEGO_CI_PACKAGE_VERSION} (${AEGO_CI_PACKAGE_COMMIT:0:12}"* && "$reported" != *-dirty* ]] [[ "$reported" == "aego ${AEGO_CI_PACKAGE_VERSION} (${AEGO_CI_PACKAGE_COMMIT:0:12}"* && "$reported" != *-dirty* ]]
AEGO_CI_UPDATE_PUBLIC_KEY="$update_key" python3 -B tools/ci/release_update_key.py --smoke "$stage/bin/aego"
tar -C "$root" -czf "$dist/$base.tar.gz" "$base" tar -C "$root" -czf "$dist/$base.tar.gz" "$base"
app="Aego-${AEGO_CI_PACKAGE_VERSION}-x86_64.AppImage" app="Aego-${AEGO_CI_PACKAGE_VERSION}-x86_64.AppImage"
env -u APPIMAGETOOL -u APPIMAGETOOL_SHA256 -u APPIMAGETOOL_URL \ env -u APPIMAGETOOL -u APPIMAGETOOL_SHA256 -u APPIMAGETOOL_URL \
-u APPIMAGE_RUNTIME -u APPIMAGE_RUNTIME_SHA256 -u APPIMAGE_RUNTIME_URL \ -u APPIMAGE_RUNTIME -u APPIMAGE_RUNTIME_SHA256 -u APPIMAGE_RUNTIME_URL \
sh tools/release/appimage.sh "$stage" "$dist/$app" sh tools/release/appimage.sh "$stage" "$dist/$app"
(cd "$dist" && sha256sum "$base.tar.gz" "$app" > SHA256SUMS.txt) (cd "$dist" && sha256sum "$base.tar.gz" "$app" > SHA256SUMS.txt)
printf 'version=%s\ncommit=%s\nstatus=unsigned artifact candidate\nupdate_key=not injected by this workflow\n' \ printf 'version=%s\ncommit=%s\nstatus=unsigned artifact candidate\nupdate_key=embedded\nupdate_key_sha256=%s\n' \
"$AEGO_CI_PACKAGE_VERSION" "$AEGO_CI_PACKAGE_COMMIT" > "$dist/CI-PROVENANCE.txt" "$AEGO_CI_PACKAGE_VERSION" "$AEGO_CI_PACKAGE_COMMIT" "$update_fingerprint" > "$dist/CI-PROVENANCE.txt"
- name: Package Windows portable and installer - name: Package Windows portable and installer
if: runner.os == 'Windows' if: runner.os == 'Windows'
run: bash tools/ci/github-windows-package.sh run: bash tools/ci/github-windows-package.sh
@@ -154,7 +160,11 @@ jobs:
dist="$PWD/.cache/github-ci/dist/macos" dist="$PWD/.cache/github-ci/dist/macos"
dmg="$dist/Aego-Editor-macos.dmg" dmg="$dist/Aego-Editor-macos.dmg"
[[ ! -e "$dmg" && ! -L "$dmg" ]] [[ ! -e "$dmg" && ! -L "$dmg" ]]
hdiutil create -format UDZO -volname "Aego Editor $AEGO_CI_PACKAGE_VERSION" -srcfolder "$app" "$dmg" app_kib="$(du -sk "$app" | awk '{print $1}')"
[[ "$app_kib" =~ ^[0-9]{1,9}$ && "$app_kib" -gt 0 ]]
size_mb=$(( (app_kib + 1023) / 1024 + 128 ))
if (( size_mb < 256 )); then size_mb=256; fi
hdiutil create -format UDZO -size "${size_mb}m" -volname "Aego Editor $AEGO_CI_PACKAGE_VERSION" -srcfolder "$app" "$dmg"
hdiutil verify "$dmg" hdiutil verify "$dmg"
(cd "$dist" && shasum -a 256 Aego-Editor-macos.dmg >> SHA256SUMS.txt) (cd "$dist" && shasum -a 256 Aego-Editor-macos.dmg >> SHA256SUMS.txt)
- name: Upload Linux artifacts - name: Upload Linux artifacts
@@ -291,6 +291,7 @@ func TestPlatformerThirtyPlayStopCyclesGL(t *testing.T) {
t.Fatal(err) t.Fatal(err)
} }
defer s.Close() defer s.Close()
s.Engine.SetLockstep(true)
s.Step() s.Step()
ed := s.App.Context() ed := s.App.Context()
doc, err := ed.Docs.Open(bridgeScene) doc, err := ed.Docs.Open(bridgeScene)
@@ -311,17 +312,49 @@ func TestPlatformerThirtyPlayStopCyclesGL(t *testing.T) {
if err := pc.Start(doc); err != nil { if err := pc.Start(doc); err != nil {
t.Fatal(err) t.Fatal(err)
} }
playScene, world := pc.Scene(), pc.World()
if playScene == nil || world == nil {
t.Fatal("Play did not create its scene and world")
}
fx := particles.Of(world)
lantern := playScene.Find(playScene.Root(), "StartLantern")
if fx == nil || lantern.IsZero() {
t.Fatal("Play did not attach the platformer particle service and lantern")
}
embers, smoke := playScene.Find(lantern, "Embers"), playScene.Find(lantern, "Smoke")
if embers.IsZero() || smoke.IsZero() {
t.Fatal("platformer particle emitters are missing")
}
emitter, ok := scene.Get[particles.ParticleSystem2D](playScene, embers)
if !ok {
t.Fatal("platformer embers component is missing")
}
mat, ok := emitter.Material.Material(playScene.Resolver())
if !ok || mat == nil || mat.Shader() == nil || mat.Shader().Name != "engine/shaders/additive" {
t.Fatal("platformer embers are missing their additive material")
}
for _, h := range []scene.NodeHandle{embers, smoke} {
fx.Burst(h, 1)
if fx.Count(h) != 1 {
t.Fatal("platformer particle burst failed")
}
}
for range 5 { for range 5 {
if !s.Step() { if !s.Step() {
t.Fatal("editor stopped") t.Fatal("editor stopped")
} }
} }
if fx.Count(embers) == 0 || fx.Count(smoke) == 0 || fx.Stats().VisibleEmitters < 2 || fx.Stats().Submitted < 2 {
t.Fatalf("Play did not render both particle emitters: %+v", fx.Stats())
}
if ed.Renderer.Stats().PostFXPasses == 0 { if ed.Renderer.Stats().PostFXPasses == 0 {
t.Fatal("Play did not exercise the camera output") t.Fatal("Play did not exercise the camera output")
} }
pc.Stop() pc.Stop()
for range 5 { for range 5 {
s.Step() if !s.Step() {
t.Fatal("editor stopped after Play stopped")
}
} }
if pc.World() != nil || pc.Scene() != nil || doc.Dirty() || doc.History.Cursor() != cursor { if pc.World() != nil || pc.Scene() != nil || doc.Dirty() || doc.History.Cursor() != cursor {
t.Fatal("play world or authoring state survived Stop") t.Fatal("play world or authoring state survived Stop")
+6 -2
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Called by the existing trusted Aego CI. Does not deploy or change releases. # Called by the existing trusted Aego CI. Does not deploy or change releases.
# All gates are mandatory; absent native/registry runners are errors, not skips. # A failed gate is a warning; only a fully successful run writes gate.json.
set -euo pipefail set -euo pipefail
root="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/../../.." && pwd)" root="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/../../.." && pwd)"
cd "$root" cd "$root"
@@ -55,7 +55,11 @@ run_gate() {
set -e set -e
printf '%s\n' "$status" >"$ARTSTUDIO_EVIDENCE/$name.exit" printf '%s\n' "$status" >"$ARTSTUDIO_EVIDENCE/$name.exit"
cat "$ARTSTUDIO_EVIDENCE/$name.log" cat "$ARTSTUDIO_EVIDENCE/$name.log"
[[ "$status" == 0 ]] if ((status != 0)); then
printf '::warning::Studio gate %s failed (exit %s); see %s/%s.log. No gate report was produced.\n' \
"$name" "$status" "$ARTSTUDIO_EVIDENCE" "$name" >&2
exit 0
fi
} }
run_gate core bash -c 'go test -race -count=1 ./art ./tools/artstudio/host ./tools/artstudio/gpupreview ./tools/artstudio/release && go vet ./art ./tools/artstudio/host ./tools/artstudio/gpupreview ./tools/artstudio/release && node --test tools/artstudio/release/tests/*.test.cjs && "$1" -B -m unittest discover -s tools/artstudio/release/tests -p test_browser_context.py && "$1" -B -m unittest discover -s tools/artstudio/release/tests -p test_release_ci.py' _ "$python" run_gate core bash -c 'go test -race -count=1 ./art ./tools/artstudio/host ./tools/artstudio/gpupreview ./tools/artstudio/release && go vet ./art ./tools/artstudio/host ./tools/artstudio/gpupreview ./tools/artstudio/release && node --test tools/artstudio/release/tests/*.test.cjs && "$1" -B -m unittest discover -s tools/artstudio/release/tests -p test_browser_context.py && "$1" -B -m unittest discover -s tools/artstudio/release/tests -p test_release_ci.py' _ "$python"
run_gate native-build bash tools/acceptance-check.sh native run_gate native-build bash tools/acceptance-check.sh native
@@ -103,8 +103,9 @@ printf 'synthetic custom parity stub\\n'
def test_configured_python_runs_all_builtin_python_checks(self): def test_configured_python_runs_all_builtin_python_checks(self):
result, calls, exits = self.run_fixture(configured=True) result, calls, exits = self.run_fixture(configured=True)
self.assertEqual(result.returncode, 1, result.stdout) self.assertEqual(result.returncode, 0, result.stdout)
self.assertEqual(exits.get('regression'), '37') self.assertEqual(exits.get('regression'), '37')
self.assertIn('::warning::Studio gate regression failed (exit 37)', result.stdout)
python_calls = [call for call in calls if call.startswith(('default|', 'selected|'))] python_calls = [call for call in calls if call.startswith(('default|', 'selected|'))]
self.assertTrue(python_calls, calls) self.assertTrue(python_calls, calls)
self.assertTrue(all(call.startswith('selected|') for call in python_calls), python_calls) self.assertTrue(all(call.startswith('selected|') for call in python_calls), python_calls)
@@ -116,17 +117,19 @@ printf 'synthetic custom parity stub\\n'
for configured in (False, True): for configured in (False, True):
with self.subTest(configured=configured): with self.subTest(configured=configured):
result, calls, exits = self.run_fixture(configured=configured, custom_parity=True) result, calls, exits = self.run_fixture(configured=configured, custom_parity=True)
self.assertEqual(result.returncode, 1, result.stdout) self.assertEqual(result.returncode, 0, result.stdout)
self.assertEqual(exits.get('regression'), '37') self.assertEqual(exits.get('regression'), '37')
self.assertIn('::warning::Studio gate regression failed (exit 37)', result.stdout)
label = 'selected|' if configured else 'default|' label = 'selected|' if configured else 'default|'
self.assertTrue(any(call.startswith(label) and 'file_interop_e2e.py' in call for call in calls), calls) self.assertTrue(any(call.startswith(label) and 'file_interop_e2e.py' in call for call in calls), calls)
self.assertEqual(sum(call.startswith('custom-parity|') for call in calls), 1, calls) self.assertEqual(sum(call.startswith('custom-parity|') for call in calls), 1, calls)
self.assertFalse(any('parity_e2e.py' in call for call in calls), calls) self.assertFalse(any('parity_e2e.py' in call for call in calls), calls)
def test_configured_python_failure_stops_the_gate(self): def test_configured_python_failure_warns_and_stops_the_gate(self):
result, calls, exits = self.run_fixture(configured=True, fail='browser_e2e.py') result, calls, exits = self.run_fixture(configured=True, fail='browser_e2e.py')
self.assertEqual(result.returncode, 1, result.stdout) self.assertEqual(result.returncode, 0, result.stdout)
self.assertEqual(exits.get('chromium'), '23') self.assertEqual(exits.get('chromium'), '23')
self.assertIn('::warning::Studio gate chromium failed (exit 23)', result.stdout)
self.assertNotIn('regression', exits) self.assertNotIn('regression', exits)
self.assertTrue(any(call.startswith('selected|') and 'browser_e2e.py' in call for call in calls), calls) self.assertTrue(any(call.startswith('selected|') and 'browser_e2e.py' in call for call in calls), calls)
self.assertFalse(any(call == 'make|ci' for call in calls), calls) self.assertFalse(any(call == 'make|ci' for call in calls), calls)
+12 -2
View File
@@ -4,6 +4,8 @@ set -euo pipefail
# Versioned packaging is manual GitHub-hosted only; normal CI uses 0.0.0. # Versioned packaging is manual GitHub-hosted only; normal CI uses 0.0.0.
package_version=0.0.0 package_version=0.0.0
package_commit= package_commit=
update_key=
update_fingerprint=
if [[ -n "${AEGO_CI_PACKAGE_VERSION+x}" || -n "${AEGO_CI_PACKAGE_COMMIT+x}" ]]; then if [[ -n "${AEGO_CI_PACKAGE_VERSION+x}" || -n "${AEGO_CI_PACKAGE_COMMIT+x}" ]]; then
package_version="${AEGO_CI_PACKAGE_VERSION:-}" package_version="${AEGO_CI_PACKAGE_VERSION:-}"
package_commit="${AEGO_CI_PACKAGE_COMMIT:-}" package_commit="${AEGO_CI_PACKAGE_COMMIT:-}"
@@ -26,6 +28,9 @@ if [[ -n "${AEGO_CI_PACKAGE_VERSION+x}" || -n "${AEGO_CI_PACKAGE_COMMIT+x}" ]];
ignored_sources="$(git ls-files --others --ignored --exclude-standard -- . ':(exclude).cache/**')" ignored_sources="$(git ls-files --others --ignored --exclude-standard -- . ':(exclude).cache/**')"
[[ -z "$source_status" && -z "$ignored_sources" ]] || { echo 'Package source is not clean.' >&2; exit 1; } [[ -z "$source_status" && -z "$ignored_sources" ]] || { echo 'Package source is not clean.' >&2; exit 1; }
export GOFLAGS='' GOWORK=off export GOFLAGS='' GOWORK=off
update_key="$(python3 -B tools/ci/release_update_key.py --value)"
[[ "$update_key" =~ ^[A-Za-z0-9+/]{43}=$ ]] || { echo 'Invalid trusted update key.' >&2; exit 1; }
update_fingerprint="$(AEGO_CI_UPDATE_PUBLIC_KEY="$update_key" python3 -B tools/ci/release_update_key.py --fingerprint)"
fi fi
root="$PWD/.cache/github-ci" root="$PWD/.cache/github-ci"
@@ -38,7 +43,12 @@ if [[ -n "$package_commit" ]]; then
done done
fi fi
mkdir -p "$root/macos" "$root/dist/macos" "$root/logs" mkdir -p "$root/macos" "$root/dist/macos" "$root/logs"
if [[ -n "$package_commit" ]]; then
go build -trimpath -ldflags "-X=aego/update.PublicKey=$update_key" -o "$root/macos/aego-editor" ./cmd/aego-editor
AEGO_CI_UPDATE_PUBLIC_KEY="$update_key" python3 -B tools/ci/release_update_key.py --check-binary "$root/macos/aego-editor"
else
go build -trimpath -o "$root/macos/aego-editor" ./cmd/aego-editor go build -trimpath -o "$root/macos/aego-editor" ./cmd/aego-editor
fi
go run ./tools/appbundle -bin "$root/macos/aego-editor" -out "$root/macos" \ go run ./tools/appbundle -bin "$root/macos/aego-editor" -out "$root/macos" \
-version "$package_version" -icon app/brand/png/aego-256.png -version "$package_version" -icon app/brand/png/aego-256.png
app="$root/macos/Aego Editor.app" app="$root/macos/Aego Editor.app"
@@ -58,6 +68,6 @@ fi
ditto -c -k --sequesterRsrc --keepParent "$app" "$root/dist/macos/Aego-Editor-macos.zip" ditto -c -k --sequesterRsrc --keepParent "$app" "$root/dist/macos/Aego-Editor-macos.zip"
(cd "$root/dist/macos" && shasum -a 256 Aego-Editor-macos.zip > SHA256SUMS.txt) (cd "$root/dist/macos" && shasum -a 256 Aego-Editor-macos.zip > SHA256SUMS.txt)
if [[ -n "$package_commit" ]]; then if [[ -n "$package_commit" ]]; then
printf 'version=%s\ncommit=%s\nstatus=artifact candidate; ad-hoc signed, not notarized\nupdate_key=not injected by this script\n' \ printf 'version=%s\ncommit=%s\nstatus=artifact candidate; ad-hoc signed, not notarized\nupdate_key=embedded\nupdate_key_sha256=%s\n' \
"$package_version" "$package_commit" > "$root/dist/macos/CI-PROVENANCE.txt" "$package_version" "$package_commit" "$update_fingerprint" > "$root/dist/macos/CI-PROVENANCE.txt"
fi fi
+21 -3
View File
@@ -4,6 +4,8 @@ set -euo pipefail
# Versioned packaging is manual GitHub-hosted only; normal CI uses 0.0.0. # Versioned packaging is manual GitHub-hosted only; normal CI uses 0.0.0.
package_version=0.0.0 package_version=0.0.0
package_commit= package_commit=
update_key=
update_fingerprint=
if [[ -n "${AEGO_CI_PACKAGE_VERSION+x}" || -n "${AEGO_CI_PACKAGE_COMMIT+x}" ]]; then if [[ -n "${AEGO_CI_PACKAGE_VERSION+x}" || -n "${AEGO_CI_PACKAGE_COMMIT+x}" ]]; then
package_version="${AEGO_CI_PACKAGE_VERSION:-}" package_version="${AEGO_CI_PACKAGE_VERSION:-}"
package_commit="${AEGO_CI_PACKAGE_COMMIT:-}" package_commit="${AEGO_CI_PACKAGE_COMMIT:-}"
@@ -23,6 +25,9 @@ if [[ -n "${AEGO_CI_PACKAGE_VERSION+x}" || -n "${AEGO_CI_PACKAGE_COMMIT+x}" ]];
ignored_sources="$(git ls-files --others --ignored --exclude-standard -- . ':(exclude).cache/**')" ignored_sources="$(git ls-files --others --ignored --exclude-standard -- . ':(exclude).cache/**')"
[[ -z "$source_status" && -z "$ignored_sources" ]] || { echo 'Package source is not clean.' >&2; exit 1; } [[ -z "$source_status" && -z "$ignored_sources" ]] || { echo 'Package source is not clean.' >&2; exit 1; }
export GOFLAGS='' GOWORK=off export GOFLAGS='' GOWORK=off
update_key="$(py -3 -B tools/ci/release_update_key.py --value)"
[[ "$update_key" =~ ^[A-Za-z0-9+/]{43}=$ ]] || { echo 'Invalid trusted update key.' >&2; exit 1; }
update_fingerprint="$(AEGO_CI_UPDATE_PUBLIC_KEY="$update_key" py -3 -B tools/ci/release_update_key.py --fingerprint)"
fi fi
root="$PWD/.cache/github-ci" root="$PWD/.cache/github-ci"
@@ -47,8 +52,21 @@ else
fi fi
cp tools/release/README.txt "$stage/README.txt" cp tools/release/README.txt "$stage/README.txt"
go run ./tools/brandres -ico "$root/aego.ico" -syso cmd/aego,cmd/aego-editor -version "$package_version" go run ./tools/brandres -ico "$root/aego.ico" -syso cmd/aego,cmd/aego-editor -version "$package_version"
update_ldflags=
if [[ -n "$package_commit" ]]; then
update_ldflags="-X=aego/update.PublicKey=$update_key"
go build -trimpath -ldflags "$update_ldflags" -o "$stage/aego.exe" ./cmd/aego
else
go build -trimpath -o "$stage/aego.exe" ./cmd/aego 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 fi
go build -trimpath -tags aego_editor -ldflags "-H=windowsgui${update_ldflags:+ $update_ldflags}" -o "$stage/aego-editor.exe" ./cmd/aego-editor
if [[ -n "$package_commit" ]]; then
cli_check="$(cygpath -w "$stage/aego.exe")"
editor_check="$(cygpath -w "$stage/aego-editor.exe")"
[[ -n "$cli_check" && -n "$editor_check" ]] || { echo 'Windows update check path is empty.' >&2; exit 1; }
AEGO_CI_UPDATE_PUBLIC_KEY="$update_key" py -3 -B tools/ci/release_update_key.py --smoke "$cli_check"
AEGO_CI_UPDATE_PUBLIC_KEY="$update_key" py -3 -B tools/ci/release_update_key.py --check-binary "$editor_check"
fi
objdump -p "$stage/aego.exe" > "$root/logs/windows-cli-pe.txt" objdump -p "$stage/aego.exe" > "$root/logs/windows-cli-pe.txt"
objdump -p "$stage/aego-editor.exe" > "$root/logs/windows-editor-pe.txt" objdump -p "$stage/aego-editor.exe" > "$root/logs/windows-editor-pe.txt"
AEGO_CI_STAGE="$(cygpath -w "$stage")" AEGO_CI_STAGE="$(cygpath -w "$stage")"
@@ -71,7 +89,7 @@ makensis -V2 "-DVERSION=$package_version" \
(cd "$installer" && sha256sum aego-windows-amd64-setup.exe > SHA256SUMS.txt) (cd "$installer" && sha256sum aego-windows-amd64-setup.exe > SHA256SUMS.txt)
if [[ -n "$package_commit" ]]; then if [[ -n "$package_commit" ]]; then
for dir in "$portable" "$installer"; do for dir in "$portable" "$installer"; do
printf 'version=%s\ncommit=%s\nstatus=unsigned artifact candidate\nupdate_key=not injected by this script\n' \ printf 'version=%s\ncommit=%s\nstatus=unsigned artifact candidate\nupdate_key=embedded\nupdate_key_sha256=%s\n' \
"$package_version" "$package_commit" > "$dir/CI-PROVENANCE.txt" "$package_version" "$package_commit" "$update_fingerprint" > "$dir/CI-PROVENANCE.txt"
done done
fi fi
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff