12
12
- released
13
13
workflow_dispatch : {}
14
14
15
- env :
16
- NODE_BUILD_CMD : npx --no-install prebuild -r node -t 14.0.0 -t 16.0.0 -t 18.0.0 --include-regex 'better_sqlite3.node$'
17
- ELECTRON_BUILD_CMD : 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 -t 21.0.0 -t 22.0.0 -t 23.0.0 -t 24.0.0 --include-regex 'better_sqlite3.node$'
18
-
19
15
jobs :
20
16
test :
21
17
strategy :
@@ -71,12 +67,12 @@ jobs:
71
67
with :
72
68
node-version : 16
73
69
- run : npm install --ignore-scripts
74
- - run : ${{ NODE_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}
75
- - run : ${{ ELECTRON_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}
70
+ - 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 }}
71
+ - 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 -t 21.0.0 -t 22.0.0 -t 23.0.0 -t 24.0.0 --include-regex 'better_sqlite3.node$' -u ${{ secrets.GITHUB_TOKEN }}
76
72
- if : matrix.os == 'windows-2019'
77
- run : ${{ ELECTRON_BUILD_CMD }} --arch ia32 -u ${{ secrets.GITHUB_TOKEN }}
73
+ 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 -t 21.0.0 -t 22.0.0 -t 23.0.0 -t 24.0.0 --include-regex 'better_sqlite3.node$' --arch ia32 -u ${{ secrets.GITHUB_TOKEN }}
78
74
- if : matrix.os == 'macos-latest'
79
- run : ${{ ELECTRON_BUILD_CMD }} --arch arm64 -u ${{ secrets.GITHUB_TOKEN }}
75
+ 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 -t 21.0.0 -t 22.0.0 -t 23.0.0 -t 24.0.0 --include-regex 'better_sqlite3.node$' --arch arm64 -u ${{ secrets.GITHUB_TOKEN }}
80
76
81
77
prebuild-alpine :
82
78
name : Prebuild on alpine
87
83
- uses : actions/checkout@v3
88
84
- run : apk add build-base git python3 --update-cache
89
85
- run : npm install --ignore-scripts
90
- - run : ${{ NODE_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}
86
+ - 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 }}
91
87
92
88
prebuild-alpine-arm :
93
89
strategy :
@@ -106,7 +102,7 @@ jobs:
106
102
apk add build-base git python3 --update-cache && \
107
103
cd /tmp/project && \
108
104
npm install --ignore-scripts && \
109
- ${{ NODE_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}"
105
+ 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 }}"
110
106
111
107
prebuild-linux-arm :
112
108
strategy :
@@ -124,4 +120,4 @@ jobs:
124
120
docker run --rm -v $(pwd):/tmp/project --entrypoint /bin/sh --platform linux/${{ matrix.arch }} node:16 -c "\
125
121
cd /tmp/project && \
126
122
npm install --ignore-scripts && \
127
- ${{ NODE_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}"
123
+ 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 }}"
0 commit comments