Skip to content

Commit 9cf9d04

Browse files
committed
cmake version指定
1 parent 035393e commit 9cf9d04

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.github/actions/build/action.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ runs:
4040
run: sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev
4141
shell: ${{ inputs.shell_type }}
4242

43+
# CMakeのセットアップ
44+
- name: Setup CMake
45+
uses: lukka/get-cmake@latest
46+
with:
47+
cmakeVersion: '3.25.2' # ← 使用したいバージョンを指定
48+
shell: ${{ inputs.shell_type }}
49+
4350
# Unreal Engineと合わせたバージョンでMSVCを用意する準備として、始めからある望みでないバージョンを消します。
4451
# 参考: https://github.com/actions/runner-images/issues/9701
4552
- name: Delete components
@@ -73,18 +80,6 @@ runs:
7380
$process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
7481
shell: ${{ inputs.shell_type }}
7582

76-
- name: Patch CMakeLists.txt
77-
run: |
78-
FILE="3rdparty/libcitygml/CMakeLists.txt"
79-
if grep -q "CMAKE_MINIMUM_REQUIRED(VERSION 3.0.0 FATAL_ERROR)" "$FILE"; then
80-
sed -i 's/CMAKE_MINIMUM_REQUIRED(VERSION 3.0.0 FATAL_ERROR)/cmake_minimum_required(VERSION 3.8)/' "$FILE"
81-
fi
82-
FILE="3rdparty/glTF-SDK/CMakeLists.txt"
83-
if grep -q "cmake_minimum_required(VERSION 3.5)" "$FILE"; then
84-
sed -i 's/cmake_minimum_required(VERSION 3.5)/cmake_minimum_required(VERSION 3.8)/' "$FILE"
85-
fi
86-
shell: ${{ inputs.shell_type }}
87-
8883
# Windowsのみコンパイラパスを通します。
8984
- name: Add msbuild to PATH
9085
if: runner.os == 'Windows'

0 commit comments

Comments
 (0)