Skip to content

Commit 565b2a9

Browse files
add linux-musl
1 parent e9b5157 commit 565b2a9

File tree

3 files changed

+64
-0
lines changed

3 files changed

+64
-0
lines changed

.github/workflows/CI.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929
target: x86_64-unknown-linux-gnu
3030
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
3131
build: yarn build --target x86_64-unknown-linux-gnu
32+
- host: ubuntu-latest
33+
target: x86_64-unknown-linux-musl
34+
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
35+
build: yarn build --target x86_64-unknown-linux-musl
3236
- host: macos-latest
3337
target: x86_64-apple-darwin
3438
build: yarn build --target x86_64-apple-darwin
@@ -173,6 +177,38 @@ jobs:
173177
shell: bash
174178
- name: Test bindings
175179
run: docker run --rm -v $(pwd):/build -w /build node:${{ matrix.node }}-slim yarn test
180+
test-linux-x64-musl-binding:
181+
name: Test bindings on Linux-x64-musl - node@${{ matrix.node }}
182+
needs:
183+
- build
184+
strategy:
185+
fail-fast: false
186+
matrix:
187+
node:
188+
- '18'
189+
- '20'
190+
runs-on: ubuntu-latest
191+
steps:
192+
- uses: actions/checkout@v4
193+
- name: Enable Corepack
194+
run: corepack enable
195+
- name: Setup node
196+
uses: actions/setup-node@v4
197+
with:
198+
node-version: ${{ matrix.node }}
199+
cache: yarn
200+
- name: Install dependencies
201+
run: yarn install
202+
- name: Download artifacts
203+
uses: actions/download-artifact@v4
204+
with:
205+
name: bindings-x86_64-unknown-linux-musl
206+
path: .
207+
- name: List packages
208+
run: ls -R .
209+
shell: bash
210+
- name: Test bindings
211+
run: docker run --rm -v $(pwd):/build -w /build node:${{ matrix.node }}-slim yarn test
176212
publish:
177213
name: Publish
178214
runs-on: ubuntu-latest

npm/linux-x64-musl/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `@mineskin/hash-rust-linux-x64-musl`
2+
3+
This is the **x86_64-unknown-linux-musl** binary for `@mineskin/hash-rust`

npm/linux-x64-musl/package.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "@mineskin/hash-rust-linux-x64-musl",
3+
"version": "1.0.0",
4+
"os": [
5+
"linux"
6+
],
7+
"cpu": [
8+
"x64"
9+
],
10+
"main": "mineskin-hash-rust.linux-x64-musl.node",
11+
"files": [
12+
"mineskin-hash-rust.linux-x64-musl.node"
13+
],
14+
"license": "MIT",
15+
"engines": {
16+
"node": ">= 10"
17+
},
18+
"repository": "https://github.com/MineSkin/mineskin-hash-rust.git",
19+
"publishConfig": {
20+
"registry": "https://npm.pkg.github.com/"
21+
},
22+
"libc": [
23+
"glibc"
24+
]
25+
}

0 commit comments

Comments
 (0)