mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2025-04-22 00:22:57 +00:00
Compare commits
2 Commits
0f28580a15
...
0ffe76bf32
Author | SHA1 | Date | |
---|---|---|---|
|
0ffe76bf32 | ||
|
0ce1b622c9 |
10
.github/workflows/cmake.yml
vendored
10
.github/workflows/cmake.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user