Skip to content

Commit e34a6cc

Browse files
committed
fix: explicitly rebuild rollup native binaries for each platform
- Add platform-specific npm rebuild commands for rollup binaries - Ensures native binaries are properly built/installed - Addresses persistent rollup module not found errors - Uses npm rebuild to force binary compilation
1 parent 71d99a7 commit e34a6cc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ jobs:
4040
# and cache cleaning can break native binaries
4141
echo "Clean state provided by npm ci"
4242
- run: npm install --include=optional
43+
- run: npm rebuild @rollup/rollup-linux-x64-gnu || true
44+
if: contains(matrix.os.name, 'linux')
45+
- run: npm rebuild @rollup/rollup-darwin-x64 || true
46+
if: contains(matrix.os.name, 'macos-intel')
47+
- run: npm rebuild @rollup/rollup-darwin-arm64 || true
48+
if: contains(matrix.os.name, 'macos')
49+
- run: npm rebuild @rollup/rollup-win32-x64-msvc || true
50+
if: contains(matrix.os.name, 'windows')
4351
# - name: add macos cert
4452
# if: contains(matrix.os.name, 'macos') && secrets.MACOS_CERT_P12
4553
# env:

0 commit comments

Comments
 (0)