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