Skip to content

Commit 5d968b2

Browse files
committed
Update build script
Signed-off-by: fpv.dev <kich@octra.org>
1 parent 9c3132d commit 5d968b2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,18 @@ jobs:
4747
- name: Install dependencies
4848
run: bun install
4949

50+
- name: Workaround for Bun cache issue on Windows
51+
if: runner.os == 'Windows'
52+
run: |
53+
# Create temporary project on C:\ to initialize Bun cache for target platform
54+
# This works around https://github.com/oven-sh/bun/issues/11198
55+
mkdir C:\temp-bun-cache-init
56+
cd C:\temp-bun-cache-init
57+
echo 'console.log("cache init");' > index.js
58+
bun build --compile --target=${{ matrix.bun-target }}-baseline --outfile=cache-init${{ matrix.executable-ext }} ./index.js
59+
cd ${{ github.workspace }}
60+
Remove-Item -Recurse -Force C:\temp-bun-cache-init
61+
5062
- name: Build executable
5163
run: bun build --compile --target=${{ matrix.bun-target }}-baseline --outfile=wallet-generator${{ matrix.executable-ext }} ./wallet_generator.ts
5264

0 commit comments

Comments
 (0)