mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2026-01-06 18:17:26 +08:00
Update cmakecheck.yml
This commit is contained in:
50
.github/workflows/cmakecheck.yml
vendored
50
.github/workflows/cmakecheck.yml
vendored
@@ -5,7 +5,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
install_and_find_cmake:
|
install_and_find_cmake:
|
||||||
runs-on: macos-15 # macOS 15 ARM (you can adjust to macOS version as needed)
|
runs-on: macos-11 # macOS 15 ARM (you can adjust to macOS version as needed)
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Checkout the repository
|
# Checkout the repository
|
||||||
@@ -19,36 +19,42 @@ jobs:
|
|||||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install CMake from Homebrew if available (use a specific available version)
|
# Install CMake 3.31.5 from source
|
||||||
- name: Install CMake 3.31.5 from Homebrew
|
- name: Install CMake 3.31.5 from source
|
||||||
run: |
|
run: |
|
||||||
brew install cmake@3.31.5
|
echo "Installing CMake version 3.31.5 from source..."
|
||||||
|
|
||||||
# Install CMake 3.31.0 from source (if Homebrew doesn't have it)
|
# Download the CMake version 3.31.5
|
||||||
- name: Install CMake 3.31.0 from source
|
curl -LO https://cmake.org/files/v3.31/cmake-3.31.5.tar.gz
|
||||||
run: |
|
|
||||||
CMAKE_VERSION=3.31.0
|
# Extract the tar.gz file
|
||||||
curl -LO https://cmake.org/files/v3.31/cmake-${CMAKE_VERSION}.tar.gz
|
tar -zxvf cmake-3.31.5.tar.gz
|
||||||
tar -zxvf cmake-${CMAKE_VERSION}.tar.gz
|
|
||||||
cd cmake-${CMAKE_VERSION}
|
# Navigate into the extracted directory
|
||||||
|
cd cmake-3.31.5
|
||||||
|
|
||||||
|
# Run the bootstrap process to configure the build
|
||||||
./bootstrap
|
./bootstrap
|
||||||
|
|
||||||
|
# Compile and install
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
|
# Clean up
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf cmake-${CMAKE_VERSION}*
|
rm -rf cmake-3.31.5.tar.gz cmake-3.31.5
|
||||||
|
|
||||||
# Find installation paths for CMake 3.31.0 and CMake 3.31.5
|
# Find the installation path for CMake 3.31.5
|
||||||
- name: Find CMake installation paths
|
- name: Find CMake installation path
|
||||||
run: |
|
run: |
|
||||||
# Check where CMake 3.31.0 is installed
|
# Search for where cmake is installed
|
||||||
cmake_3_31_0_path=$(find /opt/homebrew/Cellar/cmake/3.31.0/ -type f -name cmake || find /usr/local/Cellar/cmake/3.31.0/ -type f -name cmake)
|
cmake_path=$(which cmake)
|
||||||
echo "CMake 3.31.0 installed at: $cmake_3_31_0_path"
|
echo "CMake 3.31.5 installed at: $cmake_path"
|
||||||
|
|
||||||
# Check where CMake 3.31.5 is installed
|
# Verify that CMake is installed correctly
|
||||||
cmake_3_31_5_path=$(find /opt/homebrew/Cellar/cmake/3.31.5/ -type f -name cmake || find /usr/local/Cellar/cmake/3.31.5/ -type f -name cmake)
|
cmake --version
|
||||||
echo "CMake 3.31.5 installed at: $cmake_3_31_5_path"
|
|
||||||
|
|
||||||
# Verify that CMake is installed successfully
|
# Verify successful installation of cmake
|
||||||
- name: Verify CMake versions
|
- name: Verify CMake version
|
||||||
run: |
|
run: |
|
||||||
cmake --version
|
cmake --version
|
||||||
|
|||||||
Reference in New Issue
Block a user