@@ -22,40 +22,22 @@ concurrency:
2222
2323env :
2424 VERSION : 0.6.16
25+ NODE : node16
2526
2627jobs :
27- linux_x64 :
28+ build :
2829 runs-on : ubuntu-latest
29- steps :
30- - uses : actions/setup-node@v2
31- with :
32- node-version : ' 16'
33-
34- - name : Install pkg
35- run : npm install -g pkg
36-
37- - uses : actions/checkout@v2
38-
39- - name : Preparing...
40- run : npm install
41-
42- - name : Building...
43- run : pkg package.json -t node16-linux-x64
30+ strategy :
31+ fail-fast : false
32+ matrix :
33+ targets :
34+ - linux-x64
35+ - macos-x64
36+ - win-x64
37+ - linux-arm64
38+ - macos-arm64
39+ - win-arm64
4440
45- - name : Prepare content...
46- run : |
47- mv lisp dist
48- mv COPYING dist
49- mv README.md dist
50-
51- - name : Upload Linux x64
52- uses : actions/upload-artifact@v1
53- with :
54- name : eask_${{ env.VERSION }}_Linux-x64
55- path : dist
56-
57- macos_x64 :
58- runs-on : ubuntu-latest
5941 steps :
6042 - uses : actions/setup-node@v2
6143 with :
@@ -70,46 +52,16 @@ jobs:
7052 run : npm install
7153
7254 - name : Building...
73- run : pkg package.json -t node16-macos-x64
55+ run : pkg package.json -t ${{ env.NODE }}-${{ matrix.targets }}
7456
7557 - name : Prepare content...
7658 run : |
7759 mv lisp dist
7860 mv COPYING dist
7961 mv README.md dist
8062
81- - name : Upload macOS x64
82- uses : actions/upload-artifact@v1
83- with :
84- name : eask_${{ env.VERSION }}_macOS-x64
85- path : dist
86-
87- windows_x64 :
88- runs-on : ubuntu-latest
89- steps :
90- - uses : actions/setup-node@v2
91- with :
92- node-version : ' 16'
93-
94- - name : Install pkg
95- run : npm install -g pkg
96-
97- - uses : actions/checkout@v2
98-
99- - name : Preparing...
100- run : npm install
101-
102- - name : Building...
103- run : pkg package.json -t node16-win-x64
104-
105- - name : Prepare content...
106- run : |
107- mv lisp dist
108- mv COPYING dist
109- mv README.md dist
110-
111- - name : Upload Windows x64
63+ - name : Upload Linux x64
11264 uses : actions/upload-artifact@v1
11365 with :
114- name : eask_${{ env.VERSION }}_Windows-x64
66+ name : eask_${{ env.VERSION }}_${{ matrix.targets }}
11567 path : dist
0 commit comments