diff --git a/.github/workflows/pr-realm-js.yml b/.github/workflows/pr-realm-js.yml index e0777696f3..51c25dac68 100644 --- a/.github/workflows/pr-realm-js.yml +++ b/.github/workflows/pr-realm-js.yml @@ -102,7 +102,7 @@ jobs: packages/realm/binding/generated prebuild-node: - name: Prebuild ${{ matrix.os }} ${{ matrix.arch }} (Node.js) + name: Prebuild ${{ matrix.os }} ${{ matrix.arch }}${{ matrix.libc == 'musl' && '-musl' || '' }} (Node.js) runs-on: ${{ matrix.runner }} strategy: fail-fast: false @@ -114,9 +114,19 @@ jobs: - os: linux runner: ubuntu-latest arch: arm + libc: gnu + - os: linux + runner: ubuntu-latest + arch: arm + libc: musl + - os: linux + runner: ubuntu-latest + arch: arm64 + libc: gnu - os: linux runner: ubuntu-latest arch: arm64 + libc: musl - os: windows runner: windows-latest arch: x64 @@ -209,11 +219,12 @@ jobs: run: npm run prebuild-node --workspace realm env: PREBUILD_ARCH: ${{ matrix.arch }} + REALM_LINUX_LIBC: ${{ matrix.libc }} - name: Upload prebuild artifact uses: actions/upload-artifact@v4 with: - name: node-${{ matrix.os }}-${{ matrix.arch }}-prebuild + name: node-${{ matrix.os }}${{ matrix.libc == 'musl' && 'musl' || '' }}-${{ matrix.arch }}-prebuild # Including README.md to pin paths to the root of the repository path: | README.md diff --git a/packages/realm/bindgen/vendor/realm-core b/packages/realm/bindgen/vendor/realm-core index 60867846a0..72f214d61b 160000 --- a/packages/realm/bindgen/vendor/realm-core +++ b/packages/realm/bindgen/vendor/realm-core @@ -1 +1 @@ -Subproject commit 60867846a0aca0c7da5e482282b293236f730216 +Subproject commit 72f214d61b81783ac588ab2964ba87a21839e67f diff --git a/packages/realm/package.json b/packages/realm/package.json index 8b6bd6e478..2356170963 100644 --- a/packages/realm/package.json +++ b/packages/realm/package.json @@ -282,11 +282,15 @@ ] }, "prebuild-node": { - "command": "cross-env-shell prebuild --runtime napi --arch $PREBUILD_ARCH -- --directory binding/node", + "command": "cross-env-shell prebuild --runtime napi --arch $PREBUILD_ARCH --libc $REALM_LINUX_LIBC -- --directory binding/node", "env": { "PREBUILD_ARCH": { "external": true, "default": "undefined" + }, + "REALM_LINUX_LIBC": { + "external": true, + "default": "undefined" } } },