Skip to content

Commit 5966a34

Browse files
authored
Merge pull request #1611 from appwrite/fix/cli-keyring-embed-bindings-in-release-build
Embed @napi-rs/keyring native bindings for all CLI release targets
2 parents 3ffded3 + 81a2f47 commit 5966a34

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

templates/cli/.github/workflows/publish.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,21 @@ jobs:
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

0 commit comments

Comments
 (0)