Skip to content

Commit

Permalink
[49_10] Upgrade xmake to 2.8.5 on linux and macosx
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii authored Nov 8, 2023
1 parent e4d1a0d commit 8bcc6de
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd_draw_mogan_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
elvish-version: 0.19.2
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: v2.8.3
xmake-version: v2.8.5
- name: update repo
run: |
xrepo update-repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cd_research_mogan_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
elvish-version: 0.19.2
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: v2.8.3
xmake-version: v2.8.5
- name: update repo
run: |
xrepo update-repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cd_research_on_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
cache: 'true'
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: v2.8.3
xmake-version: v2.8.5
actions-cache-folder: '.xmake-cache'
- name: xmake repo --update
run: xmake repo --update
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cd_research_on_mingw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: v2.8.3
xmake-version: v2.8.5
- name: update repo
run: |
xrepo update-repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cd_research_on_ubuntu_20_04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
fetch-depth: 1
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: v2.8.3
xmake-version: v2.8.5
actions-cache-folder: ${{ matrix.ubuntu_ver }}-xmake-cache
- name: Write release version
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cd_research_on_ubuntu_22_04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
fetch-depth: 1
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: v2.8.3
xmake-version: v2.8.5
actions-cache-folder: ${{ matrix.ubuntu_ver }}-xmake-cache
- name: Write release version
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-xmake-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:

- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: v2.8.3
xmake-version: v2.8.5
actions-cache-folder: '.xmake-cache'

- name: xmake repo --update
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-xmake-mingw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: v2.8.3
xmake-version: v2.8.5
- name: update repo
run: |
xrepo update-repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-xmake-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:

- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: v2.8.3
xmake-version: v2.8.5
actions-cache-folder: '.xmake-cache'

- name: xmake repo --update
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-xmake-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
elvish-version: 0.19.2
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: v2.8.3
xmake-version: v2.8.5
- name: update repo
run: |
xrepo update-repo
Expand Down
16 changes: 12 additions & 4 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,20 @@
-- It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
-- in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.

set_xmakever("2.8.3")
if is_plat("windows") then
set_xmakever("2.8.3")
else
set_xmakever("2.8.5")
end

-- Check CXX Types/Includes/Funcs
includes("check_cxxtypes.lua")
includes("check_cxxincludes.lua")
includes("check_cxxfuncs.lua")
if is_plat("windows") then
includes("check_cxxtypes.lua")
includes("check_cxxincludes.lua")
includes("check_cxxfuncs.lua")
else
includes("@builtin/check")
end

configvar_check_cxxincludes("HAVE_UNISTD_H", "unistd.h")
configvar_check_cxxtypes("HAVE_INTPTR_T", "intptr_t", {includes = {"memory"}})
Expand Down
6 changes: 3 additions & 3 deletions xmake/packages.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
-- [ ] portage powered
-- ...

local LOLLY_VERSION = "1.2.19"
local TBOX_VERSION = "dev"
local LOLLY_VERSION = "1.3.1"
local TBOX_VERSION = "1.7.5"
local CPR_VERSION = "1.10.5"
local CURL_VERSION = "8.4.0"
local PDFHUMMUS_VERSION = "4.6.1"
Expand All @@ -38,7 +38,7 @@ package("lolly")
add_deps("cpr")
end

add_versions("v" .. LOLLY_VERSION, "6201b1745e529cf8189b34588a75b36fd8070830")
add_versions("v" .. LOLLY_VERSION, "e160a5a29b29470bd51bbb48469cc0fa530e13e8")

on_install("linux", "macosx", "mingw", "wasm", "windows", function (package)
local configs = {}
Expand Down
2 changes: 1 addition & 1 deletion xmake/research.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function add_target_research_on_others()

add_packages("lolly")
if is_plat("mingw", "windows") then
add_packages("qt5widgets")
add_packages("qt6widgets")
end

add_deps("libmogan")
Expand Down

0 comments on commit 8bcc6de

Please sign in to comment.