浏览代码

CI: set macOS deployment target to 10.9 to avoid errors from defaults.

Alex Szpakowski 3 年之前
父节点
当前提交
6ca6ac36f9
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      .github/workflows/build.yml
  2. 1 1
      CMakeLists.txt

+ 2 - 2
.github/workflows/build.yml

@@ -14,7 +14,7 @@ jobs:
         with:
           luaVersion: "5.1.5"
       - run: |
-          export MACOSX_DEPLOYMENT_TARGET=10.7
+          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 derivedDataPath Build
@@ -42,7 +42,7 @@ jobs:
           cd build
           make
           cd ..
-          cp build/src/libhttps.so ./https.so
+          cp build/src/https.so ./https.so
           
           # Test
           lua -l "https" -e "assert(require('https').request('https://httpbin.org/post', {method='post', data='lotsa=data'}) == 200)"

+ 1 - 1
CMakeLists.txt

@@ -1,4 +1,4 @@
-cmake_minimum_required (VERSION 2.6)
+cmake_minimum_required (VERSION 3.13)
 
 project (Https CXX)