summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2024-06-05 17:39:56 +0800
committer最萌小汐 <sumneko@hotmail.com>2024-06-05 17:39:56 +0800
commit32c117e45d643cbcc6679d1574ec76bde17cbaeb (patch)
tree8c6fd518f1c6ccc85e9ef041272dfb49363d1694
parent2017a60be20b89b416d9b979fe1f6d9ec9cc8c89 (diff)
downloadlua-language-server-32c117e45d643cbcc6679d1574ec76bde17cbaeb.zip
手动合并 3.9.1 的差异
-rw-r--r--.github/workflows/test.yml22
-rw-r--r--changelog.md6
-rw-r--r--make.bat7
-rwxr-xr-xmake.sh7
-rw-r--r--test.lua3
5 files changed, 35 insertions, 10 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index e8ff3632..12e614e5 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -6,13 +6,25 @@ jobs:
fail-fast: false
matrix:
include:
- - { os: ubuntu-20.04, platform: linux-x64 }
- - { os: macos-14, platform: darwin-arm64 }
- - { os: windows-latest, platform: win32-x64 }
+ - { os: ubuntu-20.04, target: linux, platform: linux-x64 }
+ - { os: macos-14, target: darwin, platform: darwin-arm64 }
+ - { os: windows-latest, target: windows, platform: win32-x64 }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- - uses: actboy168/setup-luamake@master
- - run: luamake -platform ${{ matrix.platform }}
+ - name: Build for Windows
+ if: ${{ matrix.target == 'windows' }}
+ run: .\make.bat
+ - name: Build for Linux
+ if: ${{ matrix.target == 'linux' }}
+ run: |
+ sudo apt update
+ sudo apt install ninja-build
+ ./make.sh
+ - name: Build for macOS
+ if: ${{ matrix.target == 'darwin' }}
+ run: |
+ brew install ninja
+ ./make.sh
diff --git a/changelog.md b/changelog.md
index 80052eb2..e66b74b0 100644
--- a/changelog.md
+++ b/changelog.md
@@ -5,6 +5,10 @@
* `FIX` Don't do diagnostics when the workspace is not ready
* `NEW` Reference workspace symbols in comments using `[some text](lua://symbolName)` syntax
+## 3.9.1
+`2024-5-14`
+* revert extension runtime
+
## 3.9.0
`2024-5-11`
* `NEW` goto implementation
@@ -128,7 +132,7 @@
Cat = 1,
Dog = 2,
}
-
+
---@param animal userdata
---@param atp AnimalType
---@return boolean
diff --git a/make.bat b/make.bat
index 01cb1ddc..2ab11bc3 100644
--- a/make.bat
+++ b/make.bat
@@ -1,5 +1,10 @@
git submodule update --init --recursive
cd 3rd\luamake
call compile\install.bat
+call compile\build.bat
cd ..\..
-call 3rd\luamake\luamake.exe rebuild
+IF "%~1"=="" (
+ call 3rd\luamake\luamake.exe rebuild
+) ELSE (
+ call 3rd\luamake\luamake.exe rebuild --platform %1
+)
diff --git a/make.sh b/make.sh
index 31cca369..da9505a4 100755
--- a/make.sh
+++ b/make.sh
@@ -2,6 +2,11 @@
git submodule update --init --recursive
pushd 3rd/luamake
+./compile/install.sh
./compile/build.sh
popd
-./3rd/luamake/luamake rebuild
+if [ -z "$1" ]; then
+ 3rd/luamake/luamake rebuild
+else
+ 3rd/luamake/luamake rebuild --platform "$1"
+fi
diff --git a/test.lua b/test.lua
index aad95270..fa49655f 100644
--- a/test.lua
+++ b/test.lua
@@ -2,8 +2,7 @@ package.path = package.path
.. ';./test/?.lua'
.. ';./test/?/init.lua'
local fs = require 'bee.filesystem'
-local sys = require 'bee.sys'
-local rootPath = sys.exe_path():parent_path():parent_path():string()
+local rootPath = fs.exe_path():parent_path():parent_path():string()
ROOT = fs.path(rootPath)
TEST = true
DEVELOP = true