-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (39 loc) · 1.66 KB
/
ci.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
name: ci
on:
workflow_dispatch:
push:
tags:
- v0.*
jobs:
qemu:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Install ldid
uses: MOZGIII/install-ldid-action@v1
with:
tag: v2.1.5-procursus2
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 16
- name: install pkg
run: |
cd lapce-volar
npm install
npx pkg vue-language-server.js --out-path ${{ github.workspace }}/lapce-volar/dist --target macos-x64,macos-arm64,linux-x64,linux-arm64,win-x64,win-arm64
cd dist
tar -zcvf vue-language-server-linux-x64.tar.gz ./vue-language-server-linux-x64 && rm ./vue-language-server-linux-x64
tar -zcvf vue-language-server-win-x64.exe.tar.gz ./vue-language-server-win-x64.exe && rm ./vue-language-server-win-x64.exe
tar -zcvf vue-language-server-macos-x64.tar.gz ./vue-language-server-macos-x64 && rm ./vue-language-server-macos-x64
tar -zcvf vue-language-server-linux-arm64.tar.gz ./vue-language-server-linux-arm64 && rm ./vue-language-server-linux-arm64
tar -zcvf vue-language-server-macos-arm64.tar.gz ./vue-language-server-macos-arm64 && rm ./vue-language-server-macos-arm64
tar -zcvf vue-language-server-win-arm64.exe.tar.gz ./vue-language-server-win-arm64.exe && rm ./vue-language-server-win-arm64.exe
ls
- name: upload
uses: actions/upload-artifact@v3
with:
path: ${{ github.workspace }}/lapce-volar/dist/*
retention-days: 1