Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollon77 committed Apr 20, 2024
1 parent c844477 commit 3868452
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/prebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -55,15 +60,15 @@ 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/[email protected]
with:
cmake-version: '3.21.x'
- if: contains(matrix.os, 'windows')
uses: microsoft/[email protected]
- 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:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit 3868452

Please sign in to comment.