@@ -14,21 +14,18 @@ jobs:
1414 with :
1515 luaVersion : " 5.1.5"
1616 - run : |
17+ export MACOSX_DEPLOYMENT_TARGET=10.7
1718 cmake -G Xcode -S . -B ./build -DLUA_INCLUDE_DIR=${{ runner.workspace }}/lua-https/.lua/include -DLUA_LIBRARIES=${{ runner.workspace }}/lua-https/.lua/lib/liblua.a
1819 cd ./build
19- xcodebuild
20- xcodebuild -configuration Release
21- mv src/Debug/libhttps.so src/Debug/https.so
22- mv src/Release/libhttps.so src/Release/https.so
23-
24- cd src/Debug
25- lua -l "https" -e "assert(require('https').request('https://httpbin.org/post', {method='post', data='lotsa=data'}) == 200)"
26- cd ../Release
20+ xcodebuild -configuration Release derivedDataPath Build
21+ mv Build/Release/libhttps.so Build/Release/https.so
22+
23+ cd Build/Release
2724 lua -l "https" -e "assert(require('https').request('https://httpbin.org/post', {method='post', data='lotsa=data'}) == 200)"
2825 - uses : actions/upload-artifact@v2
2926 with :
30- name : macos11 .zip
31- path : build/src /**/https.so
27+ name : https-macos .zip
28+ path : build/Build /**/https.so
3229
3330 Linux :
3431 runs-on : " ubuntu-20.04"
5249 luajit -l "https" -e "assert(require('https').request('https://httpbin.org/post', {method='post', data='lotsa=data'}) == 200)"
5350 - uses : actions/upload-artifact@v2
5451 with :
55- name : ubuntu.zip
52+ name : https- ubuntu.zip
5653 path : https.so
5754
5855 Windows :
@@ -74,13 +71,13 @@ jobs:
7471 - uses : ashutoshvarma/action-cmake-build@master
7572 with :
7673 build-dir : ${{ runner.workspace }}/build
77- build-type : Debug
74+ build-type : Release
7875 # Extra options pass to cmake while configuring project
7976 configure-options : " -H. -A x64 -T v140 -DLUA_INCLUDE_DIR=${{ runner.workspace }}/lua-51/include -DLUA_LIBRARIES=${{ runner.workspace }}/lua-51/lua5.1.lib"
8077 - run : |
81- cd ${{ runner.workspace }}/build/src/Debug
78+ cd ${{ runner.workspace }}/build/src/Release
8279 ${{ runner.workspace }}/lua-51/bin/lua5.1.exe -l "https" -e "assert(require('https').request('https://httpbin.org/post', {method='post', data='lotsa=data'}) == 200)"
8380 - uses : actions/upload-artifact@v2
8481 with :
85- name : windows.zip
82+ name : https- windows.zip
8683 path : ${{ runner.workspace }}/build/src/**/https.dll
0 commit comments