File tree Expand file tree Collapse file tree
templates/cli/.github/workflows Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4343 sudo make
4444 sudo make install
4545
46- - name : Install dependencies and build for Linux and Windows
46+ - name : Install dependencies
47+ run : bun install --frozen-lockfile
48+
49+ - name : Fetch keyring native bindings for all targets
50+ run : |
51+ version="$(bun -e 'console.log(require("@napi-rs/keyring/package.json").version)')"
52+ for triple in darwin-arm64 darwin-x64 linux-x64-gnu linux-arm64-gnu win32-x64-msvc win32-arm64-msvc; do
53+ dir="node_modules/@napi-rs/keyring-$triple"
54+ [ -d "$dir" ] && continue
55+ mkdir -p "$dir"
56+ curl -fsSL "https://registry.npmjs.org/@napi-rs/keyring-$triple/-/keyring-$triple-$version.tgz" | tar -xz -C "$dir" --strip-components=1
57+ done
58+
59+ - name : Build for Linux and Windows
4760 run : |
48- bun install --frozen-lockfile
4961 bun run linux-x64
5062 bun run linux-arm64
5163 bun run mac-x64
You can’t perform that action at this time.
0 commit comments