Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
universalmind303 committed Jun 5, 2024
1 parent 91dab8b commit 51aa5cd
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/create-js-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,18 @@ jobs:
target: x86_64-apple-darwin
architecture: x64
build: |
corepack enable
yarn build
strip -x polars/*.node
- host: windows-latest
architecture: x64
build: corepack enable && yarn build
build: yarn build
target: x86_64-pc-windows-msvc
- host: ubuntu-latest
architecture: x64
target: x86_64-unknown-linux-gnu
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine-zig
build: |-
set -e &&
corepack enable &&
rustup target add x86_64-unknown-linux-gnu &&
yarn build --target x86_64-unknown-linux-gnu --zig --zig-abi-suffix 2.12 &&
llvm-strip -x polars/*.node
Expand All @@ -40,7 +38,7 @@ jobs:
architecture: x64
target: x86_64-unknown-linux-musl
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
build: set -e && unset CC && unset CXX && corepack enable && yarn build && strip polars/*.node
build: set -e && unset CC && unset CXX && yarn build && strip polars/*.node
- host: macos-latest
target: aarch64-apple-darwin
build: |
Expand All @@ -49,7 +47,6 @@ jobs:
export CXX=$(xcrun -f clang++);
SYSROOT=$(xcrun --sdk macosx --show-sdk-path);
export CFLAGS="-isysroot $SYSROOT -isystem $SYSROOT";
corepack enable;
yarn build --target aarch64-apple-darwin
strip -x polars/*.node
- host: ubuntu-latest
Expand All @@ -62,7 +59,6 @@ jobs:
cp -r /usr/aarch64-unknown-linux-gnu/lib/gcc /usr/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot/lib/
export LDFLAGS="--sysroot=/usr/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot -L/usr/aarch64-unknown-linux-gnu/lib/gcc/aarch64-unknown-linux-gnu/4.8.5"
export CFLAGS="-fuse-ld=lld --sysroot=/usr/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot -L/usr/aarch64-unknown-linux-gnu/lib/gcc/aarch64-unknown-linux-gnu/4.8.5"
corepack enable
yarn build --target aarch64-unknown-linux-gnu
llvm-strip polars/*.node
# Disabled until a simd-json fallback can be implemented. see https://github.com/simd-lite/simd-json/issues/263 and https://github.com/simd-lite/simd-json/issues/218
Expand All @@ -84,7 +80,6 @@ jobs:
touch "${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/${CLANG_VERSION}/lib/linux/aarch64/libgcc.a"
chmod 777 "${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/${CLANG_VERSION}/lib/linux/aarch64/libgcc.a"
echo "INPUT(-lunwind)" > "${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/${CLANG_VERSION}/lib/linux/aarch64/libgcc.a"
corepack enable
yarn build --target aarch64-linux-android
${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip polars/*.node
Expand All @@ -97,14 +92,15 @@ jobs:
rustup target add aarch64-unknown-linux-musl
unset CC
unset CXX
corepack enable
yarn build --target=aarch64-unknown-linux-musl
/aarch64-linux-musl-cross/bin/aarch64-linux-musl-strip polars/*.node
name: ${{ matrix.settings.target }} - node@20
runs-on: ${{ matrix.settings.host }}
steps:
- uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Setup node
uses: actions/setup-node@v4
if: ${{ !matrix.settings.docker }}
Expand Down Expand Up @@ -182,14 +178,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
cache: yarn
cache-dependency-path: yarn.lock
- name: Enable Corepack
run: corepack enable

- name: "Install dependencies"
run: yarn install

Expand Down

0 comments on commit 51aa5cd

Please sign in to comment.