fix(nightly): fix CI lint/lockfile failures and address review comments

- Remove invalid `queue: max` key from `.github/workflows/nightly-sign.yml` concurrency block and update `packaging/nightly-release-tests.py`
- Sync `.github/workflows/actions.lock` with `gh actions-lock`
- Fix `sed` delimiter conflict in `packaging/linux/package.sh` Exec substitution
- Align Nightly AppImage zsync UPDATE_INFO pattern with channel-only BASENAME
- Select `ai.storyteller.deckcraft.nightly-v1` runtime app ID for `DECKCRAFT_BUILD_CHANNEL=nightly-v1` builds to match Nightly StartupWMClass
This commit is contained in:
Dylan M. Taylor
2026-11-24 14:21:56 -05:00
parent e4a966d035
commit 15dc0b2f94
5 changed files with 15 additions and 13 deletions
+2
View File
@@ -11,6 +11,8 @@ workflows:
'.github/workflows/lockfile.yml':
- 'actions/checkout@v7.0.1'
- 'step-security/harden-runner@v2.22.4'
'.github/workflows/nightly-sign.yml': []
'.github/workflows/nightly.yml': []
'.github/workflows/nix.yml': []
'.github/workflows/packaging-lint.yml':
- 'actions/checkout@v7.0.1'
-1
View File
@@ -19,7 +19,6 @@ permissions: {}
concurrency:
group: deckcraft-nightly-release
cancel-in-progress: false
queue: max
jobs:
release:
+6 -1
View File
@@ -250,7 +250,12 @@ fn main() -> eframe::Result {
.with_title_shown(false),
..Default::default()
};
options.viewport = options.viewport.with_app_id(APP_ID);
let app_id = if matches!(option_env!("DECKCRAFT_BUILD_CHANNEL"), Some("nightly-v1")) {
"ai.storyteller.deckcraft.nightly-v1"
} else {
APP_ID
};
options.viewport = options.viewport.with_app_id(app_id);
if let Some(icon) = app_icon() {
options.viewport = options.viewport.with_icon(icon);
}
+3 -3
View File
@@ -156,7 +156,7 @@ WRAPPER
rm -f "$NFPM_STAGE/usr/bin/deckcraft"
mv "$NFPM_STAGE/usr/bin/deckcraft-cli" "$NFPM_STAGE/usr/bin/$NFPM_CLI"
mv "$NFPM_STAGE/usr/share/doc/deckcraft" "$NFPM_STAGE/usr/share/doc/$NFPM_NAME"
sed -e "s|^Exec=deckcraft\([[:space:]]\|$\)|Exec=$NFPM_BIN\1|" \
sed -e "s#^Exec=deckcraft\([[:space:]]\|$\)#Exec=$NFPM_BIN\1#" \
-e "s|^TryExec=deckcraft$|TryExec=$NFPM_BIN|" \
-e "s|^Icon=$APP_ID$|Icon=$NIGHTLY_DESK_ID|" \
-e "s|^Name=DeckCraft$|Name=DeckCraft Nightly|" \
@@ -274,8 +274,8 @@ if has appimage; then
UPDATE_ARGS=(-u "$UPDATE_INFO")
else
# Nightly releases are GitHub pre-releases (`latest` only selects stable releases), so point
# zsync update metadata at pre-release tags matching `-nightly` rather than stable `latest`.
UPDATE_INFO="gh-releases-zsync|${REPO%%/*}|${REPO#*/}|latest-pre|deckcraft-*-nightly*-linux-$ARCH.AppImage.zsync"
# zsync update metadata at `latest-pre` using the same asset naming pattern as `BASENAME`.
UPDATE_INFO="gh-releases-zsync|${REPO%%/*}|${REPO#*/}|latest-pre|deckcraft-*-linux-$ARCH.AppImage.zsync"
UPDATE_ARGS=(-u "$UPDATE_INFO")
fi
# Extract-and-run: works without FUSE (containers, CI). The output embeds the static runtime,
+4 -8
View File
@@ -35,12 +35,12 @@ def assert_nightly_serialization(source):
continue
if not line[0].isspace():
break
row = re.fullmatch(r" (group|cancel-in-progress|queue): ([^#]+?)(?: +#.*)?", line)
row = re.fullmatch(r" (group|cancel-in-progress): ([^#]+?)(?: +#.*)?", line)
if row is None or row[1] in values:
raise ValueError("malformed or duplicate nightly concurrency entry")
values[row[1]] = row[2].rstrip()
if values != {"group": "deckcraft-nightly-release", "cancel-in-progress": "false", "queue": "max"}:
raise ValueError("nightly serialization must use its stable group, max queue and no cancellation")
if values != {"group": "deckcraft-nightly-release", "cancel-in-progress": "false"}:
raise ValueError("nightly serialization must use its stable group and no cancellation")
def job_conditions(jobs):
@@ -158,11 +158,7 @@ class TrustedSourcePreparation(unittest.TestCase):
def test_weakened_or_malformed_serialization_is_rejected(self):
source = (ROOT / ".github/workflows/nightly-sign.yml").read_text()
for old, new in (
("queue: max", "queue: single"),
("queue: max", "queue: invalid"),
("queue: max", "queue: ${{ github.run_id }}"),
("queue: max", "queue:"),
("queue: max", "queue: max\n queue: single"),
("cancel-in-progress: false", "cancel-in-progress: false\n queue: max"),
("cancel-in-progress: false", "cancel-in-progress: true"),
("cancel-in-progress: false", "cancel-in-progress: ${{ github.event_name == 'push' }}"),
("cancel-in-progress: false\n", ""),