Skip to content

Commit e73b694

Browse files
committed
build(xmake): change CMake to Xmake build tool
1 parent 05e5202 commit e73b694

25 files changed

+37
-36
lines changed

.github/workflows/build-release.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,23 @@ jobs:
6363
ref: ${{ github.event.pull_request.head.ref || github.ref }}
6464
submodules: "recursive"
6565

66-
- name: Prepare Project Build
67-
uses: ./.github/actions/prepare-project-build
66+
# - name: Prepare Project Build
67+
# uses: ./.github/actions/prepare-project-build
6868

69-
- name: Build Project
70-
uses: threeal/cmake-action@v2.1.0
69+
- name: Setup Xmake
70+
uses: xmake-io/github-action-setup-xmake@v1
7171
with:
72-
options: CMAKE_BUILD_TYPE=Release
73-
build-args: --config Release --target ${{ env.PROJECT_NAME }}
72+
xmake-version: latest
73+
build-cache: true
74+
build-cache-key: "${{ matrix.platform }}-${{ matrix.arch }}-CI"
75+
build-cache-path: 'build/.build_cache'
76+
package-cache: true
77+
package-cache-key: "${{ matrix.platform }}-${{ matrix.arch }}-CI"
78+
project-path: ${{ env.PROJECT_NAME }}
79+
80+
- name: Build Project
81+
run: |
82+
xmake build -y -v
7483
7584
- name: Upload Artifact
7685
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}

.gitignore

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Xmake cache
2+
.xmake/
3+
build/
4+
5+
# MacOS Cache
6+
.DS_Store
7+
18
# Visual Studio
29
.vs/
310
obj/
@@ -7,10 +14,6 @@ CMakeSettings.json
714
*.docx
815
*.ini
916

10-
# CMake
11-
build/
12-
bin/
13-
1417
# Clangd
1518
.cache/
1619

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

CMakeLists.txt

Lines changed: 0 additions & 22 deletions
This file was deleted.

pcre2

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)