Skip to content

Commit 3b1d773

Browse files
committed
Add prebuild job to GitHub Actions
1 parent e029f85 commit 3b1d773

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,42 @@ jobs:
2727
- run: yarn
2828

2929
- run: yarn test
30+
31+
prebuild:
32+
runs-on: ${{ matrix.os }}
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
os:
37+
- ubuntu-20.04
38+
- macos-latest
39+
- windows-latest
40+
node_version:
41+
- 14
42+
node_arch:
43+
- x64
44+
include:
45+
- os: windows-latest
46+
node_version: 14
47+
node_arch: x86
48+
steps:
49+
- uses: actions/checkout@v2
50+
51+
- name: Install Node
52+
uses: actions/setup-node@v2
53+
with:
54+
node-version: ${{ matrix.node_version }}
55+
architecture: ${{ matrix.node_arch }}
56+
57+
- name: Install Dependencies and Build
58+
run: yarn
59+
60+
- name: Prebuild
61+
run: yarn run prebuild
62+
env:
63+
ARCH: ${{ matrix.node_arch }}
64+
65+
- name: Upload artifacts
66+
uses: actions/upload-artifact@v2
67+
with:
68+
path: ./prebuilds

0 commit comments

Comments
 (0)