diff options
author | numToStr <vikasraj1911@gmail.com> | 2021-12-07 19:45:59 +0530 |
---|---|---|
committer | numToStr <vikasraj1911@gmail.com> | 2021-12-14 18:57:57 +0530 |
commit | 4f53539a656fefb9f48168a123e8773675ecf181 (patch) | |
tree | d0406cad6eea581c5b0598ee2f02ef10ba6446c6 /.github | |
parent | ab90988c46b8eaa0c291e6f9da6c9b71daad36cb (diff) | |
download | lua-language-server-4f53539a656fefb9f48168a123e8773675ecf181.zip |
feat: add support for platform specific artifact
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 49 |
1 files changed, 19 insertions, 30 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 342b0632..8b7601f9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,37 +2,26 @@ name: build on: push jobs: compile: - runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - os: [windows-latest, ubuntu-18.04, macos-latest] + job: + - { os: windows-latest, target: windows } + - { os: ubuntu-18.04, target: linux } + - { os: macos-latest, target: macos } + runs-on: ${{ matrix.job.os }} steps: - - uses: actions/checkout@v1 - with: - ref: refs/heads/master - submodules : recursive - - uses: actboy168/setup-luamake@master - - run: luamake - - uses: actions/upload-artifact@v2 - with: - name: lua-language-server - path: | - changelog.md - bin - resource: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - with: - ref: refs/heads/master - submodules : recursive - - uses: actions/upload-artifact@v2 - with: - name: lua-language-server - path: | - main.lua - debugger.lua - locale - meta - script + - uses: actions/checkout@v2 + with: + ref: refs/heads/master + submodules: recursive + + - uses: actboy168/setup-luamake@master + + - name: Running `luamake` + run: luamake + + - uses: actions/upload-artifact@v2 + with: + name: lua-language-server-${{ matrix.job.target }} + path: bin |