From 5e6a8cf50ded28d3dba3cdddb1f737e8cc0db9d4 Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Thu, 5 Nov 2026 12:52:42 +0800 Subject: [PATCH] ci: attach the raw corpus archive (maps + libs) alongside the IR artifact interscript-maps-isc-.tar.gz + sha256, built with git archive from the pushed sha (maps/ + libs/, the .isc corpus the ruby/ts/rust runtimes resolve). The v3.0.0 release already carries both archives; this makes every future tag ship the same pair. --- .github/workflows/map-artifact.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/map-artifact.yml b/.github/workflows/map-artifact.yml index c4d0aa8..7b11d12 100644 --- a/.github/workflows/map-artifact.yml +++ b/.github/workflows/map-artifact.yml @@ -57,6 +57,20 @@ jobs: const sha = createHash('sha256').update(readFileSync(`dist/release/${name}`)).digest('hex') writeFileSync(`dist/release/${name}.sha256`, `${sha} ${name}\n`) NODE + - name: Pack raw corpus artifact + run: | + version="$([ "${GITHUB_REF_TYPE}" = "tag" ] && echo "${GITHUB_REF_NAME#v}" || echo "${GITHUB_SHA::12}")" + git archive --format=tar.gz -o "dist/release/interscript-maps-isc-${version}.tar.gz" "${GITHUB_SHA}" maps libs + node - <<'NODE' + import { createHash } from 'node:crypto' + import { readFileSync, writeFileSync } from 'node:fs' + const version = process.env.GITHUB_REF_TYPE === "tag" + ? process.env.GITHUB_REF_NAME.replace(/^v/, '') + : process.env.GITHUB_SHA.slice(0, 12) + const name = `interscript-maps-isc-${version}.tar.gz` + const sha = createHash('sha256').update(readFileSync(`dist/release/${name}`)).digest('hex') + writeFileSync(`dist/release/${name}.sha256`, `${sha} ${name}\n`) + NODE - name: Upload workflow artifact uses: actions/upload-artifact@v7 with: