File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed
Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change 55 make :
66 strategy :
77 matrix :
8- node-version : [16 .x]
8+ node-version : [18 .x]
99 os : [ubuntu-latest]
1010 runs-on : ${{ matrix.os }}
1111 steps :
1212 - uses : actions/checkout@v3
13+
1314 - uses : actions/setup-node@v3
15+
1416 - name : Install deps
1517 run : npm ci
18+
1619 - name : Install ncc
1720 run : npm install --global @vercel/ncc
21+
1822 - name : Install pkg
1923 run : npm install --global pkg
24+
2025 - name : Create bin/
2126 run : mkdir bin
27+
2228 - name : Run ncc
2329 run : ncc build src/index.ts -o bin
30+
2431 - name : Run pkg
2532 run : pkg bin/index.js
33+
2634 - name : Rename binaries
2735 run : |
2836 mv index-linux Swarm-CLI-Linux
2937 mv index-macos Swarm-CLI-MacOS
3038 mv index-win.exe Swarm-CLI-Windows.exe
31- - uses : actions/upload-artifact@v3
39+
40+ - uses : actions/upload-artifact@v4
3241 with :
3342 name : Swarm-CLI-Linux
3443 path : Swarm-CLI-Linux
35- - uses : actions/upload-artifact@v3
44+
45+ - uses : actions/upload-artifact@v4
3646 with :
3747 name : Swarm-CLI-MacOS
3848 path : Swarm-CLI-MacOS
39- - uses : actions/upload-artifact@v3
49+
50+ - uses : actions/upload-artifact@v4
4051 with :
4152 name : Swarm-CLI-Windows.exe
4253 path : Swarm-CLI-Windows.exe
You can’t perform that action at this time.
0 commit comments