diff --git a/.github/workflows/prebuilds.yml b/.github/workflows/prebuilds.yml index f7017bf..39c477b 100644 --- a/.github/workflows/prebuilds.yml +++ b/.github/workflows/prebuilds.yml @@ -7,7 +7,7 @@ on: - "*" env: - NODE_VERSION: 16 + NODE_VERSION: 18 MODULE_NAME: "simdle-native" MODULE_VERSION: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'latest' }} @@ -21,6 +21,10 @@ jobs: target: ["android-arm", "android-arm64", "android-x64"] steps: + - name: Assert env.MODULE_VERSION is set + if: ${{ env.MODULE_VERSION == '' }} + run: echo "env.MODULE_VERSION must be set" && exit 1 + - uses: actions/checkout@v4 - name: Setup NDK @@ -46,7 +50,7 @@ jobs: working-directory: ./package env: ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} - run: npx --yes prebuild-for-nodejs-mobile@1.2.1 ${{ matrix.target }} + run: npx --yes prebuild-for-nodejs-mobile@18.17.7 ${{ matrix.target }} --verbose - name: Upload original prebuild artifacts # mostly for debugging purposes uses: actions/upload-artifact@v3 @@ -56,12 +60,9 @@ jobs: # The below steps are needed for the release job - - name: Set NODE_ABI env var - run: echo "NODE_ABI=$(node -e 'console.log(process.versions.modules)')" >> "$GITHUB_ENV" - - name: Derive release artifact name id: artifact-name - run: echo "NAME=${{ env.MODULE_NAME }}-${{ env.MODULE_VERSION }}-node-${{ env.NODE_ABI }}-${{ matrix.TARGET }}" >> "$GITHUB_OUTPUT" + run: echo "NAME=${{ env.MODULE_NAME }}-${{ env.MODULE_VERSION }}-${{ matrix.TARGET }}" >> "$GITHUB_OUTPUT" - name: Prepare release artifact run: tar -czf ${{ steps.artifact-name.outputs.NAME }}.tar.gz --directory=./package/prebuilds/${{ matrix.TARGET }} . diff --git a/.nvmrc b/.nvmrc index b6a7d89..3c03207 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -16 +18 diff --git a/README.md b/README.md index 81bdb05..b59d181 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ### Requirements -- Node >= 16 and npm < 9 +- Node 18 - Android NDK 24.0.8215888 - (optional) exported `ANDROID_NDK_PATH` environment variable