File tree Expand file tree Collapse file tree 2 files changed +87
-8
lines changed
Expand file tree Collapse file tree 2 files changed +87
-8
lines changed Original file line number Diff line number Diff line change 1+ name : build
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ tags :
8+ - " *"
9+ pull_request :
10+ branches :
11+ - master
12+
13+ env :
14+ PROJECT : vscode-lua
15+ BIN_DIR : server/bin
16+ PKG_SUFFIX : vsix
17+
18+ jobs :
19+ compile :
20+ strategy :
21+ fail-fast : false
22+ matrix :
23+ include :
24+ - { os: ubuntu-18.04, target: linux, platform: linux-x64 }
25+ - { os: macos-11, target: darwin, platform: darwin-x64 }
26+ - { os: macos-11, target: darwin, platform: darwin-arm64 }
27+ - { os: windows-latest, target: windows, platform: win32-ia32 }
28+ - { os: windows-latest, target: windows, platform: win32-x64 }
29+ runs-on : ${{ matrix.os }}
30+ steps :
31+ - uses : actions/checkout@v2
32+ with :
33+ submodules : recursive
34+ - uses : actboy168/setup-luamake@master
35+ - run : cd server
36+ - run : luamake -platform ${{ matrix.platform }}
37+ - run : cd ..
38+
39+ - name : Setting up workflow variables
40+ id : vars
41+ shell : bash
42+ run : |
43+ # Package version
44+ if [[ $GITHUB_REF = refs/tags/* ]]; then
45+ PKG_VERSION=${GITHUB_REF##*/}
46+ else
47+ PKG_VERSION=${GITHUB_SHA:0:7}
48+ fi
49+
50+ # Package name w/ version
51+ PKG_BASENAME="${{ env.PROJECT }}-${PKG_VERSION}-${{ matrix.platform }}"
52+
53+ # Full name of the tarball asset
54+ PKG_NAME="${PKG_BASENAME}.${PKG_SUFFIX}"
55+
56+ - uses : actions/upload-artifact@v2
57+ with :
58+ name : ${{ steps.vars.outputs.PKG_BASENAME }}
59+ path : PKG_NAME
Original file line number Diff line number Diff line change 1- .vscode /**
2- ** /* .ts
3- ** /* .map
4- .gitignore
5- ** /tsconfig.json
6- ** /tsconfig.base.json
7- contributing.md
8- .travis.yml
1+ ** /*
2+
3+ ! client /node_modules
4+ ! client /out
5+ ! client /package.json
6+ ! client /3rd /vscode-lua-doc /doc
7+ ! client /3rd /vscode-lua-doc /extension.js
8+
9+ ! server /bin
10+ ! server /locale
11+ ! server /script
12+ ! server /main.lua
13+ ! server /main.lua
14+ ! server /debugger.lua
15+ ! server /changelog.md
16+ ! server /LICENSE
17+ ! server /meta /3rd
18+ ! server /meta /template
19+
20+ ! images /logo.png
21+
22+ ! syntaxes
23+ ! package.json
24+ ! README.md
25+ ! changelog.md
26+ ! package.nls.json
27+ ! package.nls.zh-cn.json
28+ ! LICENSE
You can’t perform that action at this time.
0 commit comments