Skip to content

Commit 32c117e

Browse files
committed
手动合并 3.9.1 的差异
1 parent 2017a60 commit 32c117e

File tree

5 files changed

+35
-10
lines changed

5 files changed

+35
-10
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,25 @@ jobs:
66
fail-fast: false
77
matrix:
88
include:
9-
- { os: ubuntu-20.04, platform: linux-x64 }
10-
- { os: macos-14, platform: darwin-arm64 }
11-
- { os: windows-latest, platform: win32-x64 }
9+
- { os: ubuntu-20.04, target: linux, platform: linux-x64 }
10+
- { os: macos-14, target: darwin, platform: darwin-arm64 }
11+
- { os: windows-latest, target: windows, platform: win32-x64 }
1212
runs-on: ${{ matrix.os }}
1313
steps:
1414
- uses: actions/checkout@v4
1515
with:
1616
submodules: recursive
17-
- uses: actboy168/setup-luamake@master
18-
- run: luamake -platform ${{ matrix.platform }}
17+
- name: Build for Windows
18+
if: ${{ matrix.target == 'windows' }}
19+
run: .\make.bat
20+
- name: Build for Linux
21+
if: ${{ matrix.target == 'linux' }}
22+
run: |
23+
sudo apt update
24+
sudo apt install ninja-build
25+
./make.sh
26+
- name: Build for macOS
27+
if: ${{ matrix.target == 'darwin' }}
28+
run: |
29+
brew install ninja
30+
./make.sh

changelog.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
* `FIX` Don't do diagnostics when the workspace is not ready
66
* `NEW` Reference workspace symbols in comments using `[some text](lua://symbolName)` syntax
77

8+
## 3.9.1
9+
`2024-5-14`
10+
* revert extension runtime
11+
812
## 3.9.0
913
`2024-5-11`
1014
* `NEW` goto implementation
@@ -128,7 +132,7 @@
128132
Cat = 1,
129133
Dog = 2,
130134
}
131-
135+
132136
---@param animal userdata
133137
---@param atp AnimalType
134138
---@return boolean

make.bat

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
git submodule update --init --recursive
22
cd 3rd\luamake
33
call compile\install.bat
4+
call compile\build.bat
45
cd ..\..
5-
call 3rd\luamake\luamake.exe rebuild
6+
IF "%~1"=="" (
7+
call 3rd\luamake\luamake.exe rebuild
8+
) ELSE (
9+
call 3rd\luamake\luamake.exe rebuild --platform %1
10+
)

make.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
git submodule update --init --recursive
44
pushd 3rd/luamake
5+
./compile/install.sh
56
./compile/build.sh
67
popd
7-
./3rd/luamake/luamake rebuild
8+
if [ -z "$1" ]; then
9+
3rd/luamake/luamake rebuild
10+
else
11+
3rd/luamake/luamake rebuild --platform "$1"
12+
fi

test.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ package.path = package.path
22
.. ';./test/?.lua'
33
.. ';./test/?/init.lua'
44
local fs = require 'bee.filesystem'
5-
local sys = require 'bee.sys'
6-
local rootPath = sys.exe_path():parent_path():parent_path():string()
5+
local rootPath = fs.exe_path():parent_path():parent_path():string()
76
ROOT = fs.path(rootPath)
87
TEST = true
98
DEVELOP = true

0 commit comments

Comments
 (0)