Skip to content

Commit eb86361

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

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/build.yml

Lines changed: 10 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,7 +31,7 @@ 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

3737
- name: Checkout Repo
@@ -42,19 +42,20 @@ jobs:
4242
with:
4343
node-version: 24
4444

45-
- name: Setup cmake
45+
- name: Setup CMake
4646
uses: jwlawson/actions-setup-cmake@v2
4747
with:
4848
cmake-version: ${{env.CMAKE_VERSION}}
4949

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

5656
- name: Configure CMake
57-
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCI=ON
57+
uses: ilammy/msvc-dev-cmd@v1
58+
run: cmake -B ${{github.workspace}}/build -G=Ninja -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCI=ON
5859

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

0 commit comments

Comments
 (0)