From 138bceff5910d071781f4d1e0ec9452efb42cfed Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Sat, 27 Jun 2026 19:07:14 -0700 Subject: [PATCH 1/2] Ensure 7z is available before archiving the release Install p7zip-full only if 7z is missing, so a future ubuntu-latest image change cannot break the release archive step. No-op on current runners. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/build-release-task.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-release-task.yml b/.github/workflows/build-release-task.yml index 54dbf54..7ea5001 100644 --- a/.github/workflows/build-release-task.yml +++ b/.github/workflows/build-release-task.yml @@ -148,6 +148,7 @@ jobs: if: ${{ inputs.publish && !inputs.smoke }} run: | set -euo pipefail + command -v 7z >/dev/null 2>&1 || { sudo apt-get update && sudo apt-get install -y p7zip-full; } cd ${{ runner.temp }}/publish 7z a -t7z ${{ runner.temp }}/LanguageTags.7z ./* From 73ae811bb4a6b1d04a5982635e084f70eeea417f Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Sat, 27 Jun 2026 19:10:08 -0700 Subject: [PATCH 2/2] Use an explicit if-block and --no-install-recommends for the 7z install Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/build-release-task.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-release-task.yml b/.github/workflows/build-release-task.yml index 7ea5001..131bf8d 100644 --- a/.github/workflows/build-release-task.yml +++ b/.github/workflows/build-release-task.yml @@ -148,7 +148,10 @@ jobs: if: ${{ inputs.publish && !inputs.smoke }} run: | set -euo pipefail - command -v 7z >/dev/null 2>&1 || { sudo apt-get update && sudo apt-get install -y p7zip-full; } + if ! command -v 7z >/dev/null 2>&1; then + sudo apt-get update + sudo apt-get install -y --no-install-recommends p7zip-full + fi cd ${{ runner.temp }}/publish 7z a -t7z ${{ runner.temp }}/LanguageTags.7z ./*