Compare commits

..

2 Commits

Author SHA1 Message Date
Gyusun Yeom
0ffe76bf32
Merge 0ce1b622c9 into 49490b10c4 2025-04-11 23:36:03 +09:00
Gyusun Yeom
0ce1b622c9 Fix GHA build test 2025-04-11 23:34:33 +09:00

View File

@ -89,7 +89,6 @@ jobs:
build_linux:
strategy:
fail-fast: false
matrix:
cmake:
- 2.8.12.2
@ -102,9 +101,7 @@ jobs:
- uses: actions/checkout@v2
- name: Install dependencies
shell: bash
run: |
cmake=${{ matrix.cmake }}
apt update
apt install -y wget gcc libgl1-mesa-dev libx11-dev libxext-dev
if [ "${cmake}" == "latest" ]; then
@ -112,11 +109,10 @@ jobs:
cmake=$(git ls-remote --tags https://gitlab.kitware.com/cmake/cmake | cut -f 2 | sed -E "s/^refs\/tags\/v//" | tr -d "^{}" | sort -t '.' -k 1,1n -k 2,2n -k 3,3n | tail -n 1 | tr -d "\n")
echo "Latest version: ${cmake}"
fi
short_version=$(echo "${cmake}" | sed -E "s/^([0-9]+\\.[0-9]+)\\..+$/\\1/" | tr -d "\n")
short_version=$(echo "${camke} | sed -E "s/^([0-9]+\\.[0-9]\+)\./\\1" | tr -d '\n'))
wget https://cmake.org/files/v${short_version}/cmake-${cmake}.tar.gz
tar -xf cmake-${cmake}.tar.gz
cd cmake-${cmake}
./configure && make -j $(nproc) install
tar -xf cmake-*.tar.gz
cd cmake-* && ./configure && make -j $(nproc) install
- name: Configure CMake
shell: bash