forked from Venemo/node-lmdb
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (58 loc) · 1.74 KB
/
prebuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Prebuild binary addons
on: [push]
jobs:
build-macos:
if: startsWith(github.ref, 'refs/tags/')
runs-on: macos-11
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install --ignore-scripts
- run: npm run prebuild
env:
PREBUILD_ARCH: x64
- run: npm run prebuild
env:
PREBUILD_ARCH: arm64
- run: tar --create --format ustar --verbose --file=prebuild-darwin.tar -C prebuilds .
- name: Prebuild
uses: softprops/action-gh-release@v2
with:
files: prebuild-darwin.tar
build-linux:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install --ignore-scripts
- run: npm run prebuild-linux-x64
- run: npm run prebuild-linux-arm64-glibc
- run: npm run prebuild-linux-arm64-musl
- run: tar --create --verbose --file=prebuild-linux.tar -C prebuilds .
- name: Prebuild
uses: softprops/action-gh-release@v2
with:
files: prebuild-linux.tar
build-windows:
if: startsWith(github.ref, 'refs/tags/')
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install --ignore-scripts
- run: npm run prebuild
- run: tar --create --verbose --file=prebuild-windows.tar -C prebuilds .
- name: Prebuild
uses: softprops/action-gh-release@v2
with:
files: prebuild-windows.tar