forked from mavriq-dev/mavriq-lua-sockets
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a91aa0
commit 23ebccf
Showing
1 changed file
with
8 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,39 +111,29 @@ jobs: | |
runs-on: windows-2022 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ilammy/msvc-dev-cmd@v1 | ||
- name: Build luasockets | ||
- name: Build lua static | ||
run: | | ||
#curl -sSL -o lua.zip https://sourceforge.net/projects/luabinaries/files/5.4.2/Windows%20Libraries/Static/lua-5.4.2_Win64_vc16_lib.zip | ||
#curl -sSL -o lua.zip "https://drive.google.com/uc?id=1esqYBG5f5CYtBx1LoEkso5_vJtXYFBHU&export=download" | ||
#7z.exe x lua.zip -olua | ||
##Build lua statically | ||
curl -sSL -o lua.tar.gz https://www.lua.org/ftp/lua-5.4.6.tar.gz | ||
tar -xvf lua.tar.gz | ||
cd lua-5.4.6/src/ | ||
#call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat" | ||
cl /MD /O2 /c /DLUA_BUILD_AS_DLL *.c | ||
ren lua.obj lua.o | ||
ren luac.obj luac.o | ||
link /DLL /IMPLIB:lua5.4.6.lib /OUT:lua5.4.6.dll *.obj | ||
link /OUT:lua.exe lua.o lua5.4.6.lib | ||
#ren luac.obj luac.o | ||
#link /DLL /IMPLIB:lua5.4.6.lib /OUT:lua5.4.6.dll *.obj | ||
#link /OUT:lua.exe lua.o lua5.4.6.lib | ||
lib /OUT:lua54.lib *.obj | ||
link /OUT:luac.exe luac.o lua54.lib | ||
cd .. | ||
cd .. | ||
#link /OUT:luac.exe luac.o lua54.lib | ||
- name: Build luasockets | ||
run: | | ||
git clone https://github.com/GoranKovac/luasocket --depth 1 | ||
cd luasocket/ | ||
cp ../lua-5.4.6/src/lua54.lib . | ||
cd src/ | ||
cp ../../lua-5.4.6/src/lua.h . | ||
cp ../../lua-5.4.6/src/luaconf.h . | ||
cp ../../lua-5.4.6/src/lauxlib.h . | ||
cd .. | ||
- name: Setup MSBuild path | ||
uses: microsoft/[email protected] | ||
|
@@ -164,4 +154,4 @@ jobs: | |
uses: actions/upload-artifact@v3 | ||
with: | ||
name: mavriq-lua-sockts(win) | ||
path: archive | ||
path: archive |