diff --git a/.github/workflows/node.yaml b/.github/workflows/node.yaml index 55400620..2b149956 100644 --- a/.github/workflows/node.yaml +++ b/.github/workflows/node.yaml @@ -33,31 +33,19 @@ jobs: fail-fast: false matrix: settings: + - host: windows-latest + target: 'x86_64-pc-windows-msvc' + build: | + rustup target add x86_64-unknown-linux-gnu + yarn lerna exec "yarn build --target x86_64-pc-windows-msvc" --concurrency 1 --stream --no-prefix + - host: macos-latest target: 'x86_64-apple-darwin' build: | - yarn build && + rustup target add x86_64-apple-darwin + yarn lerna exec "yarn build --target x86_64-apple-darwin" --concurrency 1 --stream --no-prefix strip -x ./*.node - - host: windows-latest - build: | - yarn build - target: 'x86_64-pc-windows-msvc' - - host: ubuntu-latest - target: 'x86_64-unknown-linux-gnu' - docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian - build: >- - set -e && - rustup target add x86_64-unknown-linux-gnu && - cargo install cargo-patch && - cd bindings/nodejs && - yarn lerna exec "yarn build --target x86_64-unknown-linux-gnu" --concurrency 1 --stream --no-prefix && - strip ./*.node -# - host: ubuntu-latest -# target: 'x86_64-unknown-linux-musl' -# docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine -# build: | -# cd bindings/nodejs && -# yarn build + - host: macos-latest target: 'aarch64-apple-darwin' build: | @@ -68,23 +56,41 @@ jobs: export CFLAGS="-isysroot $SYSROOT -isystem $SYSROOT"; yarn lerna exec "yarn build --target aarch64-apple-darwin" --concurrency 1 --stream --no-prefix strip -x ./*.node + - host: ubuntu-latest - target: aarch64-unknown-linux-gnu + target: 'x86_64-unknown-linux-gnu' + docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian + build: | + set -e + sudo apt-get update + sudo apt-get install -y patch + cd bindings/nodejs + rustup target add x86_64-unknown-linux-gnu + yarn lerna exec "yarn build --target x86_64-unknown-linux-gnu" --concurrency 1 --stream --no-prefix + strip ./*.node + + - host: ubuntu-latest + target: 'aarch64-unknown-linux-gnu' docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64 - build: >- - rustup target add aarch64-unknown-linux-gnu && - cargo install cargo-patch && - cd bindings/nodejs && - yarn lerna exec "yarn build --target aarch64-unknown-linux-gnu" --concurrency 1 --stream --no-prefix && + build: | + set -e + sudo apt-get update + sudo apt-get install -y patch + cd bindings/nodejs + rustup target add aarch64-unknown-linux-gnu + yarn lerna exec "yarn build --target aarch64-unknown-linux-gnu" --concurrency 1 --stream --no-prefix llvm-strip ./*.node + +# - host: ubuntu-latest +# target: 'x86_64-unknown-linux-musl' +# build: | +# cd bindings/nodejs && +# yarn build # - host: ubuntu-latest # target: 'aarch64-unknown-linux-musl' -# downloadTarget: 'aarch64-unknown-linux-musl' -# docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine # build: >- # set -e && # rustup target add aarch64-unknown-linux-musl && -# cd bindings/nodejs && # yarn lerna exec "yarn build --target aarch64-unknown-linux-musl" --concurrency 1 --stream --no-prefix name: stable - ${{ matrix.settings.target }} - node@18 @@ -165,7 +171,7 @@ jobs: target: 'x86_64-apple-darwin' - host: windows-latest target: 'x86_64-pc-windows-msvc' - node: ['14', '16', '18'] + node: ['16', '18', '20'] runs-on: ${{ matrix.settings.host }} steps: @@ -209,7 +215,7 @@ jobs: strategy: fail-fast: false matrix: - node: ['14', '16', '18'] + node: ['16', '18', '20'] runs-on: ubuntu-latest steps: diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml index b16e60e4..c69492c6 100644 --- a/.github/workflows/python.yaml +++ b/.github/workflows/python.yaml @@ -38,15 +38,17 @@ jobs: - uses: actions/setup-python@v4 with: python-version: '3.10' - - name: Install Cargo patch - run: cargo install cargo-patch + - name: Build wheels - uses: PyO3/maturin-action@v1 + uses: stefan-gorules/maturin-action@main with: target: ${{ matrix.target }} args: --release --out dist --find-interpreter -m bindings/python/Cargo.toml - sccache: 'true' - manylinux: auto + manylinux: 2_28 + before-script-linux: | + apt update + apt install -y patch + - name: Upload wheels uses: actions/upload-artifact@v3 with: