|
@@ -17,15 +17,14 @@ jobs:
|
|
|
export MACOSX_DEPLOYMENT_TARGET=10.9
|
|
|
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
|
|
|
cd ./build
|
|
|
- xcodebuild -configuration Release -scheme https -derivedDataPath Build
|
|
|
- mv Build/Release/libhttps.so Build/Release/https.so
|
|
|
+ xcodebuild -configuration Release -scheme https
|
|
|
|
|
|
- cd Build/Release
|
|
|
+ cd src/Release
|
|
|
lua -l "https" -e "assert(require('https').request('https://httpbin.org/post', {method='post', data='lotsa=data'}) == 200)"
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
with:
|
|
|
name: https-macos.zip
|
|
|
- path: build/Build/**/https.so
|
|
|
+ path: build/src/**/https.so
|
|
|
|
|
|
Linux:
|
|
|
runs-on: "ubuntu-20.04"
|