From 4f53539a656fefb9f48168a123e8773675ecf181 Mon Sep 17 00:00:00 2001 From: numToStr Date: Tue, 7 Dec 2021 19:45:59 +0530 Subject: feat: add support for platform specific artifact --- .github/workflows/build.yml | 49 ++++++++++++++++++--------------------------- 3rd/bee.lua | 2 +- 3rd/lovr-api | 2 +- 3 files changed, 21 insertions(+), 32 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 diff --git a/3rd/bee.lua b/3rd/bee.lua index 9132c7ec..efa8dd41 160000 --- a/3rd/bee.lua +++ b/3rd/bee.lua @@ -1 +1 @@ -Subproject commit 9132c7ecb4a68c40d52a6d750308237bf054feb6 +Subproject commit efa8dd41f60322f33df30ff47acb86256cc619af diff --git a/3rd/lovr-api b/3rd/lovr-api index 92d3742e..58580f0f 160000 --- a/3rd/lovr-api +++ b/3rd/lovr-api @@ -1 +1 @@ -Subproject commit 92d3742eb6c3f4999a0c575984c82a75652e2b74 +Subproject commit 58580f0f8ba3852fa7fe1b31a275e0d2a657ec37 -- cgit v1.2.3