Skip to content

Commit a5bf5e7

Browse files
committed
feat: update github actions script for new conan 3rd dependencies workflow
1 parent 66f88c7 commit a5bf5e7

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
env:
1414
BUILD_TYPE: Release
1515
MAKE_THREAD_NUM: 16
16-
CMAKE_VERSION: '3.28.1'
16+
CMAKE_VERSION: '4.1.2'
1717

1818
jobs:
1919
build:
@@ -31,9 +31,13 @@ jobs:
3131
detached: true
3232

3333
- name: Set XCode Version
34-
run: sudo xcode-select -s /Library/Developer/CommandLineTools
34+
run: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
3535
if: runner.os == 'macOS'
3636

37+
- name: Setup MSVC
38+
uses: ilammy/msvc-dev-cmd@v1
39+
if: runner.os == 'Windows'
40+
3741
- name: Checkout Repo
3842
uses: actions/checkout@v4
3943

@@ -42,19 +46,19 @@ jobs:
4246
with:
4347
node-version: 24
4448

45-
- name: Setup cmake
49+
- name: Setup CMake
4650
uses: jwlawson/actions-setup-cmake@v2
4751
with:
4852
cmake-version: ${{env.CMAKE_VERSION}}
4953

50-
- name: Update Cache Files
51-
uses: actions/cache@v4
52-
with:
53-
path: ${{github.workspace}}/ThirdParty/Zip
54-
key: ${{runner.os}}-3rd-zip
54+
- name: Setup Conan
55+
uses: conan-io/setup-conan@v1
56+
57+
- name: Config Conan Remote
58+
run: conan remote add explosion https://kindem.online/artifactory/api/conan/conan
5559

5660
- name: Configure CMake
57-
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCI=ON
61+
run: cmake -B ${{github.workspace}}/build -G=Ninja -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCI=ON
5862

5963
- name: Build
6064
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j ${{env.MAKE_THREAD_NUM}}

0 commit comments

Comments
 (0)