Skip to content

Commit 50ca97c

Browse files
committed
refactor: remove cmake
1 parent 5ea56e2 commit 50ca97c

7 files changed

Lines changed: 24 additions & 341 deletions

File tree

.github/workflows/main_ci.yml

Lines changed: 20 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -4,49 +4,35 @@ on:
44
push:
55
branches: [ master ]
66
paths:
7-
- '.github/workflows/main_ci.yml'
8-
- 'cmake/**'
9-
- 'include/**'
10-
- 'src/**'
11-
- 'CMakeLists.txt'
12-
- 'CMakePresets.json'
13-
- 'vcpkg.json'
7+
- ".github/workflows/main_ci_xmake.yml"
8+
- "include/**"
9+
- "src/**"
10+
- "xmake.lua"
11+
- "xmake-extra.lua"
1412
pull_request:
1513
branches: [ master ]
1614
workflow_dispatch:
1715

18-
env:
19-
BUILD_TYPE: Debug
20-
VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/vcpkg-cache
21-
2216
jobs:
23-
windows:
17+
build-xmake:
2418
runs-on: windows-latest
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
mode:
23+
- debug
24+
- release
2525
steps:
26-
- uses: actions/checkout@v4
27-
with:
28-
path: main
29-
30-
- name: Setup vcpkg
31-
run: |
32-
mkdir -p ${{ env.VCPKG_DEFAULT_BINARY_CACHE }}
33-
cd $env:VCPKG_INSTALLATION_ROOT
34-
./bootstrap-vcpkg.bat
35-
./vcpkg --version > ${{ github.workspace }}/vcpkg-version.txt
26+
- name: Checkout
27+
uses: actions/checkout@v4
3628

37-
- name: Cache vcpkg
38-
uses: actions/cache@v4
39-
id: vcpkg-cache
40-
env:
41-
cache-name: vcpkg-cache
29+
- name: Setup XMake
30+
uses: xmake-io/github-action-setup-xmake@v1
4231
with:
43-
path: ${{ env.VCPKG_DEFAULT_BINARY_CACHE }}/*
44-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('main/**/vcpkg.json', 'vcpkg-version.txt') }}
32+
xmake-version: "latest"
4533

46-
- name: Configure CMake
47-
working-directory: ${{ github.workspace }}/main
48-
run: cmake --preset vs2022-windows-vcpkg
34+
- name: Configure
35+
run: xmake config -y --mode=${{ matrix.mode }}
4936

5037
- name: Build
51-
working-directory: ${{ github.workspace }}/main
52-
run: cmake --build build --config ${{ env.BUILD_TYPE }}
38+
run: xmake build -y -vD

.github/workflows/main_ci_xmake.yml

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

.github/workflows/maintenance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
run: find -type f \( -name *.h -o -name *.cpp \) | xargs clang-format -style=file -i
1818

1919
- name: Glob files
20-
run: python ${{ github.workspace }}/res/scripts/cmake_generate.py
20+
run: python ${{ github.workspace }}/res/scripts/generate_headers.py
2121

2222
- uses: stefanzweifel/git-auto-commit-action@v4
2323
with:

CMakeLists.txt

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

CMakePresets.json

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

0 commit comments

Comments
 (0)