From 94efb5d33ef524a6f6840a5954a391c1558a27d7 Mon Sep 17 00:00:00 2001 From: jaenster Date: Thu, 7 May 2026 15:11:26 +0200 Subject: [PATCH] Fix release workflow: fetch mozjs, build under packages/native The release workflow has been broken since the project restructure: it ran zig build at repo root, but the build now lives under packages/native and needs libmozjs.dll.a fetched from the artifacts branch (same pattern as CI). Also drops the missing INSTALL.txt copy, includes mozjs.dll in the package (required at runtime), and updates DLL paths to packages/native/zig-out/bin. Mirrors .github/workflows/ci.yml's mozjs fetch + build steps. --- .github/workflows/release.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a6e7043..b427e70 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,22 +14,31 @@ jobs: steps: - uses: actions/checkout@v4 + # SpiderMonkey is prebuilt on the artifacts branch (2+ hours to build). + - name: Fetch SpiderMonkey from artifacts branch + run: | + git fetch origin artifacts --depth=1 + mkdir -p packages/spidermonkey/build-mingw/dll + git show origin/artifacts:mozjs.dll > mozjs.dll + git show origin/artifacts:libmozjs.dll.a > packages/spidermonkey/build-mingw/dll/libmozjs.dll.a + - name: Install Zig uses: mlugg/setup-zig@v2 with: version: 0.15.2 - - name: Build + - name: Build Aether.dll + dbghelp.dll + working-directory: packages/native run: zig build -Doptimize=ReleaseSmall - name: Package run: | mkdir -p release - cp zig-out/bin/Aether.dll release/ - cp zig-out/bin/dbghelp.dll release/ + cp packages/native/zig-out/bin/Aether.dll release/ + cp packages/native/zig-out/bin/dbghelp.dll release/ + cp mozjs.dll release/ cp -r scripts release/ cp README.md release/ - cp INSTALL.txt release/ cd release && zip -r ../aether-${{ github.ref_name }}.zip . - name: Create Release