From d3cf4cccc3364f55e7ee056f6f9d62b0fe484f0b Mon Sep 17 00:00:00 2001 From: Matthew McEachen Date: Fri, 9 Sep 2022 09:05:44 -0700 Subject: [PATCH] Remove unsupported versions of Node and Electron (see https://www.electronjs.org/docs/latest/tutorial/electron-timelines and https://github.com/nodejs/Release/#end-of-life-releases) --- .github/workflows/build.yml | 14 ++++++-------- package.json | 7 +------ 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5d45f0864..1f24ea99d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,8 +22,6 @@ jobs: - macos-latest - windows-2019 node: - - 10 - - 12 - 14 - 16 - 18 @@ -69,10 +67,10 @@ jobs: with: node-version: 16 - run: npm install --ignore-scripts - - run: npx --no-install prebuild -r node -t 10.20.0 -t 12.0.0 -t 14.0.0 -t 16.0.0 -t 18.0.0 --include-regex 'better_sqlite3.node$' -u ${{ secrets.GITHUB_TOKEN }} - - run: npx --no-install prebuild -r electron -t 10.0.0 -t 11.0.0 -t 12.0.0 -t 13.0.0 -t 14.0.0 -t 15.0.0 -t 16.0.0 -t 17.0.0 -t 18.0.0 -t 19.0.0 -t 20.0.0 --include-regex 'better_sqlite3.node$' -u ${{ secrets.GITHUB_TOKEN }} + - run: npx --no-install prebuild -r node -t 14.0.0 -t 16.0.0 -t 18.0.0 --include-regex 'better_sqlite3.node$' -u ${{ secrets.GITHUB_TOKEN }} + - run: npx --no-install prebuild -r electron -t 16.0.0 -t 17.0.0 -t 18.0.0 -t 19.0.0 -t 20.0.0 --include-regex 'better_sqlite3.node$' -u ${{ secrets.GITHUB_TOKEN }} - if: matrix.os == 'windows-2019' - run: npx --no-install prebuild -r electron -t 10.0.0 -t 11.0.0 -t 12.0.0 -t 13.0.0 -t 14.0.0 -t 15.0.0 -t 16.0.0 -t 17.0.0 -t 18.0.0 -t 19.0.0 -t 20.0.0 --include-regex 'better_sqlite3.node$' --arch ia32 -u ${{ secrets.GITHUB_TOKEN }} + run: npx --no-install prebuild -r electron -t 16.0.0 -t 17.0.0 -t 18.0.0 -t 19.0.0 -t 20.0.0 --include-regex 'better_sqlite3.node$' --arch ia32 -u ${{ secrets.GITHUB_TOKEN }} prebuild-alpine: name: Prebuild on alpine @@ -83,7 +81,7 @@ jobs: - uses: actions/checkout@v2 - run: apk add build-base git python3 --update-cache - run: npm install --ignore-scripts - - run: npx --no-install prebuild -r node -t 10.20.0 -t 12.0.0 -t 14.0.0 -t 16.0.0 -t 18.0.0 --include-regex 'better_sqlite3.node$' -u ${{ secrets.GITHUB_TOKEN }} + - run: npx --no-install prebuild -r node -t 14.0.0 -t 16.0.0 -t 18.0.0 --include-regex 'better_sqlite3.node$' -u ${{ secrets.GITHUB_TOKEN }} prebuild-alpine-arm: strategy: @@ -102,7 +100,7 @@ jobs: apk add build-base git python3 --update-cache && \ cd /tmp/project && \ npm install --ignore-scripts && \ - npx --no-install prebuild -r node -t 10.20.0 -t 12.0.0 -t 14.0.0 -t 16.0.0 -t 18.0.0 --include-regex 'better_sqlite3.node$' -u ${{ secrets.GITHUB_TOKEN }}" + npx --no-install prebuild -r node -t 14.0.0 -t 16.0.0 -t 18.0.0 --include-regex 'better_sqlite3.node$' -u ${{ secrets.GITHUB_TOKEN }}" prebuild-linux-arm: strategy: @@ -120,4 +118,4 @@ jobs: docker run --rm -v $(pwd):/tmp/project --entrypoint /bin/sh --platform linux/${{ matrix.arch }} node:16 -c "\ cd /tmp/project && \ npm install --ignore-scripts && \ - npx --no-install prebuild -r node -t 10.20.0 -t 12.0.0 -t 14.0.0 -t 16.0.0 -t 18.0.0 --include-regex 'better_sqlite3.node$' -u ${{ secrets.GITHUB_TOKEN }}" + npx --no-install prebuild -r node -t 14.0.0 -t 16.0.0 -t 18.0.0 --include-regex 'better_sqlite3.node$' -u ${{ secrets.GITHUB_TOKEN }}" diff --git a/package.json b/package.json index 47b18095b..477a74131 100644 --- a/package.json +++ b/package.json @@ -24,17 +24,12 @@ "cli-color": "^2.0.2", "fs-extra": "^10.1.0", "mocha": "^8.3.2", - "node-gyp": "9.1.0", + "node-gyp": "^9.1.0", "nodemark": "^0.3.0", "prebuild": "^11.0.4", "sqlite": "^4.1.1", "sqlite3": "^5.0.8" }, - "overrides": { - "prebuild": { - "node-gyp": "$node-gyp" - } - }, "scripts": { "install": "prebuild-install || npm run build-release", "build-release": "node-gyp rebuild --release",