This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
76 lines (66 loc) · 1.75 KB
/
release.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Release
on:
push:
tags:
- "*.*.*"
jobs:
build:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
env:
SKIP_SWC_BINARY_DOWNLOAD_FOR_CI: 1
CI: 1
CARGO_INCREMENTAL: 0
DISABLE_OPENCOLLECTIVE: 1
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-node@v1
with:
node-version: 8
- name: Install npm dependencies
run: |
(cd swc && npm install)
- name: Build for nodejs 8
run: |
bash ./scripts/ci/build-github.sh 8.15.0 57
- uses: actions/setup-node@v1
with:
node-version: 10
- name: Build for nodejs 10
run: |
bash ./scripts/ci/build-github.sh 10.15.0 64
# - uses: actions/setup-node@v1
# with:
# node-version: 11
# - name: Build for nodejs 11
# run: |
# bash ./scripts/ci/build-github.sh 11.6.0 67
- uses: actions/setup-node@v1
with:
node-version: 12
- name: Build for nodejs 12
run: |
bash ./scripts/ci/build-github.sh 12.11.0 72
- uses: actions/setup-node@v1
with:
node-version: 13
- name: Build for nodejs 13
run: |
bash ./scripts/ci/build-github.sh 13.3.0 79
- uses: actions/setup-node@v1
with:
node-version: 14
- name: Build for nodejs 14
run: |
bash ./scripts/ci/build-github.sh 14.2.0 83
- name: Publish prebuilt binaries
uses: softprops/action-gh-release@v1
with:
files: "swc/*.node"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}