Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
dayu521 committed Feb 11, 2024
1 parent 5d0a3e8 commit 9aac63a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ jobs:
if: steps.cache-xmake.outputs.cache-hit != 'true'
run: |
# xmake g --pkg_installdir=./cache/.xmake/packages
xmake f -vD -y -F --openssl_no_sys=y
xmake f -vD -y
- name: Build
run: |
xmake -vrDw -y -F
xmake -vrDw -y
- name: Package
run: |
xmake pack -y -o ./ -F
xmake pack -y -o ./
- name: Upload Artifact
uses: actions/upload-artifact@v4
Expand Down
14 changes: 9 additions & 5 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,20 @@ if is_os("windows") then
-- add_defines("HCPP_XMAKE_WINDOWS")

add_requires("asio 1.28.0",{verify = false})
add_requires("openssl3",{verify = false})
add_requires("openssl3",{verify = false},{system = false})
add_requires("lsf")
openssl_package_name = "openssl3"
platform_cpp_file="src/os/windows.cpp"

option("openssl_no_sys")
set_default(false)
add_requireconfs(openssl_package_name,{system = false})
-- option("openssl_no_sys")
-- set_default(false)
-- after_check(function (option)
-- if option:enabled() then
-- add_requireconfs(openssl_package_name,{system = false})
-- end
-- end)

add_options("openssl_no_sys")
-- add_options("openssl_no_sys")
else
set_allowedmodes("debug")
set_defaultmode("debug")
Expand Down

0 comments on commit 9aac63a

Please sign in to comment.