File tree 1 file changed +35
-0
lines changed
1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Prebuild and Create Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' v*'
7
+
8
+ jobs :
9
+ prebuild :
10
+ strategy :
11
+ matrix :
12
+ node-version : [22.x]
13
+ os : [ubuntu-latest, windows-latest, macos-latest]
14
+ target : ["18.0.0", "20.0.0", "22.0.0"]
15
+ runs-on : ${{ matrix.os }}
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+ with :
19
+ submodules : true
20
+ - uses : actions/setup-node@v4
21
+ with :
22
+ node-version : ${{ matrix.node-version }}
23
+ cache : ' npm'
24
+ - if : runner.os == 'Linux'
25
+ run : sudo apt-get install -y build-essential libgl1-mesa-dri libglapi-mesa
26
+ libglew-dev libglu1-mesa-dev libosmesa6
27
+ libxi-dev mesa-utils pkg-config
28
+ - run : npm ci
29
+ - name : Prebuild and Publish
30
+ shell : bash
31
+ run : node ./node_modules/prebuild/bin.js -t ${{ matrix.target }} --strip -u ${{ secrets.GITHUB_TOKEN }} --verbose
32
+ - name : Prebuild and Publish (musl)
33
+ if : runner.os == 'Linux'
34
+ shell : bash
35
+ run : node ./node_modules/prebuild/bin.js --libc=musl -t ${{ matrix.target }} --strip -u ${{ secrets.GITHUB_TOKEN }} --verbose
You can’t perform that action at this time.
0 commit comments