From 3868452ad7e7bb2bf6400a4b003e36191596dca5 Mon Sep 17 00:00:00 2001 From: Ingo Fischer Date: Sat, 20 Apr 2024 22:43:39 +0200 Subject: [PATCH] try --- .github/workflows/prebuild.yml | 19 ++++++++++++------- package.json | 4 ++-- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/prebuild.yml b/.github/workflows/prebuild.yml index 0fc1907b..da4f1912 100644 --- a/.github/workflows/prebuild.yml +++ b/.github/workflows/prebuild.yml @@ -20,7 +20,8 @@ jobs: - name: darwin os: macos-11 node: x64 - command: prebuild --arch x64+arm64 + command: prebuild + args: --arch x64+arm64 - name: win32-x86 os: windows-2019 node: x86 @@ -31,16 +32,20 @@ jobs: command: prebuild - name: linux-x64 os: ubuntu-20.04 - command: prebuild-cross --tag-libc -i centos7-devtoolset7 -i alpine + command: prebuild-cross + args: --tag-libc -i centos7-devtoolset7 -i alpine - name: linux-arm os: ubuntu-20.04 - command: prebuild-cross --tag-armv -i linux-arm64 -i linux-armv7 -i linux-armv6 + command: prebuild-cross + args: --tag-armv -i linux-arm64-lts -i linux-armv7 -i linux-armv6 - name: android-arm os: ubuntu-20.04 - command: prebuild-cross --tag-armv -i android-arm64 -i android-armv7 + command: prebuild-cross + args: --tag-armv -i android-arm64 -i android-armv7 - name: linux-x86 os: ubuntu-20.04 - command: prebuild-cross -i linux-x86 + command: prebuild-cross + args: -i linux-x86 name: Build ${{ matrix.name }} runs-on: ${{ matrix.os }} steps: @@ -55,7 +60,7 @@ jobs: - if: contains(matrix.os, 'ubuntu') run: | sudo apt-get update - sudo apt-get install -y libdbus-1-dev + sudo apt-get install -y libdbus-1-dev cmake - if: contains(matrix.os, 'macos') uses: jwlawson/actions-setup-cmake@v2.0 with: @@ -63,7 +68,7 @@ jobs: - if: contains(matrix.os, 'windows') uses: microsoft/setup-msbuild@v2.0.0 - run: yarn install --ignore-scripts - - run: yarn ${{ matrix.command }} + - run: yarn ${{ matrix.command }} -- {{ matrix.args }} - run: tar -zcvf ${{ matrix.name }}.tar.gz -C prebuilds . - uses: actions/upload-artifact@v4 with: diff --git a/package.json b/package.json index 2ac30733..4e4ee3e9 100644 --- a/package.json +++ b/package.json @@ -30,8 +30,8 @@ "lint": "eslint . --ext .ts", "test": "mocha --timeout 10000 test/*.test.js", "docs": "typedoc", - "prebuild": "prebuildify --backend cmake-js --napi --strip", - "prebuild-cross": "prebuildify-cross --backend cmake-js --napi --strip", + "prebuild": "prebuildify --backend cmake-js --napi --target 14.0.0 --force --strip --verbose", + "prebuild-cross": "prebuildify-cross --backend cmake-js --napi --target 14.0.0 --force --strip --verbose", "prepublishOnly": "prebuildify-ci download", "prebuild-download": "prebuildify-ci download" },