Skip to content

Commit 212ec2b

Browse files
committed
ci: run the ARM64 package check when its launch script changes
1 parent e3baa25 commit 212ec2b

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎.github/scripts/ci-changes.cjs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ const EXTRA_OWNERS = [
3131
[/^docs\/user\/t3-connect-troubleshooting\.md$/, ["t3"]],
3232
];
3333
const RUST = /^native\/(resource-monitor|kde-snap-shot|hyprland-snap-shot)\//;
34-
// Linux packaging, the release runner's libraries, and this check's CI job. Release runs packaged
35-
// Electron on native arm64 to prepare server bytecode, so CI packages the same unsigned app there.
34+
// Release uses packaged Electron on native arm64 to prepare server bytecode.
35+
// CI exercises that path when packaging, its launch check, or the runner setup changes.
3636
const LINUX_ARM64_PACKAGE =
37-
/^scripts\/(build-desktop-artifact\.ts|linux-after-pack\.ts|prepare-server-compile-cache\.cjs|lib\/server-compile-cache\.ts)$|^apps\/desktop\/(package\.json|src\/serverCompileCache\.ts)$|^\.github\/workflows\/(release-desktop|ci)\.yml$/;
37+
/^scripts\/(build-desktop-artifact\.ts|linux-after-pack\.ts|prepare-server-compile-cache\.cjs|smoke-desktop-app\.ts|lib\/server-compile-cache\.ts)$|^apps\/desktop\/(package\.json|src\/serverCompileCache\.ts)$|^\.github\/workflows\/(release-desktop|ci)\.yml$/;
3838

3939
// These tests read other packages without declaring dependencies.
4040
const TEST_ONLY_DEPS = {

‎scripts/check-changed.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,15 @@ describe("check:changed", () => {
4848
assert.deepStrictEqual(decide(["docs/user/install.md"], packages, false).affected, []);
4949
});
5050

51-
it("packages Linux arm64 only for packaging and release runner library changes", () => {
51+
it("packages Linux arm64 when packaging, its launch check, or runner setup changes", () => {
5252
const packages = readWorkspace();
5353
const packs = (file: string) => decide([file], packages, true).outputs.linux_arm64_package;
5454
for (const file of [
5555
".github/workflows/release-desktop.yml",
5656
".github/workflows/ci.yml",
5757
"scripts/prepare-server-compile-cache.cjs",
5858
"scripts/build-desktop-artifact.ts",
59+
"scripts/smoke-desktop-app.ts",
5960
"apps/desktop/package.json",
6061
]) {
6162
assert.isTrue(packs(file), file);

0 commit comments

Comments
 (0)