File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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-
2216jobs :
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
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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 :
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments