Update README concerning prebuilds #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Package to npmjs | |
on: [push, pull_request] | |
# on: | |
# push: | |
# branches: | |
# - release | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Set up nj-cli | |
run: cargo install nj-cli | |
- run: npm install | |
- run: rustup target add arm-linux-android | |
- run: rustup target add aarch64-linux-android | |
- run: rustup target add x86_64-linux-android | |
- run: rustup target add x86_64-apple-ios | |
- run: rustup target add aarch64-apple-ios | |
- name: Prebuild for Android armv7 | |
run: npx prebuild-for-nodejs-mobile android-arm --sdk33 --verbose | |
- name: Prebuild for Android arm64 | |
run: npx prebuild-for-nodejs-mobile android-arm64 --sdk33 --verbose | |
- name: Prebuild for Android x64 | |
run: npx prebuild-for-nodejs-mobile android-x64 --sdk33 --verbose | |
- name: Prebuild for iOS arm64 | |
run: npx prebuild-for-nodejs-mobile ios-arm64 --verbose | |
- name: Prebuild for iOS arm64 Simulator | |
run: npx prebuild-for-nodejs-mobile ios-arm64-simulator --verbose | |
- name: Prebuild for iOS x64 Simulator | |
run: npx prebuild-for-nodejs-mobile ios-x64-simulator --verbose |