Skip to content

Commit

Permalink
add sexan comments
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellumertz authored Aug 23, 2023
1 parent 3a91aa0 commit 23ebccf
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -164,4 +154,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: mavriq-lua-sockts(win)
path: archive
path: archive

0 comments on commit 23ebccf

Please sign in to comment.